no ..
that is fine ...
i got it ...
thanks !!!!
User Profile
Collapse
-
read an entire line in a C++ string
hi ..
suppose there is a line at the command prompt with variable number of spaces . How can i scan it in a C++ string ??
a) cin cannot be used as it cannot scan spaces ...and scanf,gets cannot be used as it is a C++ string
If the line was in a file , i could have used
ifstream in("input.txt") ;
int main(){
string...
No activity results to display
Show More
Leave a comment: