Wednesday, February 3, 2010

Lab 2 summary

plan:
qccs111.blogspot.com
1) pico our first program on *venus* compile it, execute it.

pine = pine is not elm
pico = pine composer
ls = directory listing
pwd = present working directory

2) Get persons name and greet them.

#include
#include
using namespace std;
int main()
{
cout << "Please enter your name: ";
string theName;
cin >> theName;
cout << "Howdy, " << theName << "!" << endl;
return 0;
}

HW: Modify this to ask for first and last names, and greet the person using the full name.

No comments:

Post a Comment