#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";
return 0;
}
Sample 4.3:instr1.cpp
最新推荐文章于 2024-08-11 21:32:15 发布