View Single Post
Old 03-21-2007   #5
Moophz
Registered Member
 
Moophz's Avatar
 
Last Online: 09-05-2008
Join Date: Mar 2007
Posts: 15
Thanks: 0
Thanked 2 Times in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Default 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.
Moophz is offline