C++ I/O

All methods belongs to the #include<iostream>.

Basic Input

Basic types:

int a; long int b; long long int c;
float d; double e;
char f;
cin >> a >> b >> c >> d >> e >> f;

Get lines with spaces:

string line;
getline(cin, line);

Basic Output

cout << a << b << c << d << e << f << line << endl;

I/O Manipulation