16 lines
352 B
C++
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;
|
|
}
|