Instructions for simple C++ program (Problem statement is to get and print the user's name): 1. Open terminal window 2. open emacs with "emacs lab.C &" This will open a new file called lab.C in the emacs text editor and keep the terminal window active 3. Type the following into the file: #include using namespace std; int main() { //variable declaration string name; //Ask for name cout << "Please enter your name: "; cin >> name; cout << "Hi " << name << "!\n"; //terminate program return 0; } // end of int main() 4. Save the document with File and Save, or Ctrl-x Ctrl-s 5. Go back to terminal window. 6. To compile this C++ program we will use the g++ command. 7. In the terminal window type "g++ lab.C -o execlab" 8. This has created an executable program called "execlab" 9. To execute your new program type "./execlab" 10. Follow your prompts and voila!