28 lines
433 B
C++
28 lines
433 B
C++
|
|
||
|
#include <iostream>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main( int argc, char* argv[ ] )
|
||
|
{
|
||
|
char a = 'A';
|
||
|
char b = 'B';
|
||
|
char buffer[4];
|
||
|
char c = 'C';
|
||
|
char d = 'D';
|
||
|
|
||
|
cout << "Enter up to 4 characters now: " << endl;
|
||
|
cin >> buffer;
|
||
|
cout << endl;
|
||
|
|
||
|
cout << "buff = " << buffer << endl;
|
||
|
cout << "a = " << a << endl;
|
||
|
cout << "b = " << b << endl;
|
||
|
cout << "c = " << c << endl;
|
||
|
cout << "d = " << d << endl;
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
|