For reading from an xml file,
char s[6];
ifstream x("output.xml");
x.getline(s,34);
char s[6];
I don't want to specify the maximum number of characters in 's'.So,I tried to use string s instead,but getline only takes character arrays.
When I used char*,it said,The variable 's' is being used without being initialized.
So,how do I use a character array that has no maximum number of characters(limit)??????