Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7729 Discussions

How to input the string function in C++?

AnkitTech
Beginner
194 Views

 

int main()
{
char s[10];

cout << "Enter a string: ";
cin >> str;
return 0;
}

 

We can also input the string with get method. Is there any other way to input string in C++?

0 Kudos
0 Replies
Reply