User Profile

Collapse

Profile Sidebar

Collapse
debjani
debjani
Last Activity: Sep 19 '07, 02:49 PM
Joined: Sep 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • debjani
    replied to read an entire line in a C++ string
    in C
    no ..
    that is fine ...
    i got it ...
    thanks !!!!
    See more | Go to post

    Leave a comment:


  • debjani
    started a topic read an entire line in a C++ string
    in C

    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...
    See more | Go to post
No activity results to display
Show More
Working...