piątek, 13 grudnia 2013

clear cin cout cpp

#include <iostream>
using namespace std;

int main()
{
string name = "";
cout << "enter your name: ";
getline(cin, name);
if (name.empty())
{
cout << "You should enter something ";
}
cout << "hello, " <<name << " you are user " <<endl;
return 0;

Brak komentarzy:

Prześlij komentarz