Exercise on C++ program:

Create the following C++ program by using Pico text Editor;
Start with pico lab2.cpp and then type in the following content.
	/************************************************************
	*	FileName: lab2.cpp
	*	Purpose:  prints Hello, World! 
	**************************************************************/
	#include <iostream>
	using namespace std;
	int main()
	{
	   cout << "Hello, World."<<endl;
	   return 0;
	}
	// end program

Press ^x to save your program and exit pico.
Compile the program by typing: CC lab2.cpp -o lab2
Run the program by typing: lab2
Use script command to produce the output file lab2.log
Use cat or more to show your lab instructor the output file lab2.log
This page last modified:
Monday, 11-Aug-2008 12:15:51 CST
Accessed     times.
Copyright: Department of Computer Science, University of Regina.