Data Type string #include // C++ String class string str1, str2; // Default constructor cin >> str1 >> str2; cout << “str1: ” << str1 << endl << “str2: - ppt download
What are Getline Function in C++? - Shiksha Online
c++ - getline(cin, input) trying to store more than one word in a string. getline(cin, input) does not work in this situation - Stack Overflow
Read a line of string with getline(), a character with get(), output with put() via cin - C++ File Stream
String a='rajendra Prasad'; String b='Jawaharlal Nehru'; String correct; Cin>>correct; If (a==correct) {Cout<<'correct answer'<<endl;} Else {cout<<'wrong answer'<<endl;}. Why it only displays wrong answer even if I input a? - Quora
Solved I have another problem where I'm supposed to do an | Chegg.com
Solved Use cin to read strings from input until "Finished" | Chegg.com
Comparing cin and cin.get to read string - C++ File Stream
How to use std::getline() in C++? | DigitalOcean
c++ - getline function not working with multiple string input - Stack Overflow
c++ - Using multiple getline calls to read multiple lines - Stack Overflow