You might want to read it in the input intially character by character, appending it to a string (or char array). For each character, you can use the "isdigit" function to determine if the character is a digit or not. (If you support +/- for signs, you might want to handle that...
The string class does not have a << operator. To get this to work (without explaining why), try using:
cout << S1.c_str();
The class "string" is a type of the class "basic_string". In VC++ help files (at least for 6.0) look in the Index under "string", then...
I have recently experienced similar problems. I believe WSAEWOULDBLOCK error is caused due to it trying to read the socket when no data is available. Since nothing is available, it would have to block in order to get the number of bytes you are trying to read. So, what to do depends on your...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.