
This is a discussion on Getting Input and WHITESPACES within the C++ forums, part of the Application Development category; Code: #include <iostream> #include <string> using namespace std; string a; bool connected; int main() { getline (cin,a); cout << a ...
| |||||||
| 120 Online | Register | Projects | Products | Members List | Calendar | Today's Posts | Search |
| |||
| Getting Input and WHITESPACES Code: #include <iostream>
#include <string>
using namespace std;
string a;
bool connected;
int main()
{
getline (cin,a);
cout << a << endl;
system("pause");
}
you use a string and getline(cin,string); i hope this help alot of people :)
__________________ Mouse! |
![]() |
| |