123456789101112131415
#include <iostream> using namespace std; int main() { cout << "Please enter a line of text" << endl; char char1[20]; cin.get(char1, 20); cout << "Char: " << char1; cin.get(); //pause cin.get(); return 0; }