Introduction of input string with spaces in C language and C++
This article mainly explains "C language and C++ input string with space string explanation", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn the C language and the input explanation with blank strings in C++.
Catalogue
C language
C++ string Type
Summary
C language # include using namespace std;int main () {char str [100]; gets (str); printf ("% s\ n", str); return 0;}
C++ string type # include # include using namespace std;int main () {string str; getline (cin, str); cout