20 lines
459 B
C++
20 lines
459 B
C++
// instr1.cpp -- reading more than one string
|
|
#include <iostream>
|
|
int main()
|
|
{
|
|
using namespace std;
|
|
const int ArSize = 20;
|
|
char name[ArSize];
|
|
char dessert[ArSize];
|
|
|
|
cout << "Enter your name:\n";
|
|
cin >> name;
|
|
cout << "Enter your favorite dessert:\n";
|
|
cin >> dessert;
|
|
cout << "I have some delicious " << dessert;
|
|
cout << " for you, " << name << ".\n";
|
|
// cin.get();
|
|
// cin.get();
|
|
return 0;
|
|
}
|