PracticeDev/study_cpp/cpp_primer_source_code/Chapter 3/chartype.cpp

16 lines
352 B
C++

// chartype.cpp -- the char type
#include <iostream>
int main( )
{
using namespace std;
char ch; // declare a char variable
cout << "Enter a character: " << endl;
cin >> ch;
cout << "Hola! ";
cout << "Thank you for the " << ch << " character." << endl;
// cin.get();
// cin.get();
return 0;
}