I've run into a problem. At
Code:
for (vai = all->begin(); vai != all->end(); vai++, cnt++)
cout << cnt + 1 << " " << *vai << endl;
char *strcpy ( char ans, const char *vai );
ofstream a_file ( "answer.txt", ios::app );
a_file<< *vai <<",";
a_file.close();
it messes up. I tried to make it write the answers to the text file, but it always ends up being squares. I think it's becuase it's writing the memory address to the file so I tried writing vai without the asterix. But it wont compile. Does anyone know why?
Thanks in advance