hallo,i am a university student and i am now staring to learn c++...i know quite a few things of java...
here is a part of my code
ifstream spammails[spam];
for(int i=0;i<spam;i++)
ifstream spammails[i](spamnames[i]);
(spam is an int,spamnames[] is a string array)
i receive the following error:
variable-sized object 'spammails' may not be initialized
what kind of initialialization do i have to make?give null values?
