Hey I am having a bit of trouble with some C++ input.
I have a string which will store an address, however when it encounters a space in the input it will randomize the rest of the inputs.
So say we have a string
I would have preferred using gets...quite easy to use and you don't even have to change it if you want to convert your program to C.
You will have to include another header file(stdio.h)
Gets can get the spaces too.
another good function in here is
it automatically adds a newline at the end.Of course if u want to stick with iostream.h...
I guess u can use cin.getline(stringname,no.ofcharecters)......
or u can code up your own header file and make a function of your own and use it.(dont know if that comes under basic or not)