Revision: 41635
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 21, 2011 23:48 by marwac6
Initial Code
#include <iostream> int main() { using namespace std; const int ArSize = 20; char name[ArSize]; char dessert[ArSize]; cout << “Enter your name:\nâ€; cin.getline(name, ArSize); // reads through newline cout << “Enter your favorite dessert:\nâ€; cin.getline(dessert, ArSize); cout << “I have some delicious “ << dessert; cout << “ for you, “ << name << “.\nâ€; return 0; }
Initial URL
Initial Description
Initial Title
Reading more than one word
Initial Tags
array
Initial Language
C++