a code snipet.
char s[] = “1.3 this is a test <><<?!\n";
istrstream ins(s);
char ch;
ins.unsetf (ios::skipws); // don’t skip spaces
while (ins) { // false when end of array is reached
ins >> ch;
cout << ch;
}
Another way to do string separation is to use strtok().