Re: Need Help In C++
No the \0 symbolises the end of the string, or last character in the array string
The main problem was when we used the 1st "cin >>"
Code:
just replace cin >> str; (line 9)
with cin.getline (str,256) ;
Have a nice day.
__________________
We Do Not Worry About Warnings, We Only Care About Errors.
Last edited by Moophz; 03-21-2007 at 11:09 PM.
|