Advertisement
Masfiq_cpp

string#6: string input, output

Mar 25th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.12 KB | None | 0 0
  1. *
  2. *  Masfiq
  3. *  25 march, 2017
  4. *
  5.  
  6. char tmp[101];
  7. scanf("%s", tmp);
  8. string str = tmp;
  9. printf("%s", str.c_str());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement