// 3.1,3.2: Stream del terminale
#include <iostream>
using namespace std;
int main() {
int a(0);
cout << "Standard output\n";
cerr << "Standard error\n";
// Parametri di formattazione
cout << "(normale) " << 1.12345f << endl;
cout.width(2);
cout << "(width(2)) " << 1.12345f << endl;
cout.setf(ios::showpos);
cout.setf(ios::right);
cout << "showpos e right\n";
cin >> a;
cout << "Intero: " << a << endl;
char buf[256];
cin.getline(buf, 256);
cout << "Stringa: " << buf << endl;
}