Get the App
SLTechnology News&Howtos  ›  Development  › 

Introduction of input string with spaces in C language and C++

Shulou Source: shulou.com Published: 2022-06-03 19:10:03 11月12日 Update

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

Tags: Language characters strings spaces bands input content types learning utility deeper interest practicality practicality simplicity of operation methods more friends directories Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Redmi Linux vpn Shulou Technology