The wiki page was successfully created. Add a link to this page by inserting [Ex1_02.cpp] into your wiki markup.

1	 // Ex1_02.cpp A simple console application.
2	 ////////////////////////////////////////////////////////////////////
3	  
4	 // Basic intput output library/
5	 ////////////////////////////////////////////////////////////////////
6	 #include <iostream>
7	  
8	 // Create main function.
9	 ////////////////////////////////////////////////////////////////////
10	 int main()
11	 {
12	   // Display 1st string.
13	   ////////////////////////////////////////////////////////////////////
14	   std::cout << "This is a simple program that outputs some text." << std::endl;
15	  
16	   // Display 2nd string.
17	   ////////////////////////////////////////////////////////////////////
18	   std::cout << "You can add more line in the program." << std::endl;
19	  
20	   // Display 3rd string.
21	   ////////////////////////////////////////////////////////////////////
22	   std::cout << "Just repeat the statement like this." << std::endl;
23	  
24	   // Return to the OS.
25	   ////////////////////////////////////////////////////////////////////
26	   return 0;
27	 }

Last edited Aug 25, 2012 at 8:34 PM by jeankobeis, version 1

Comments

No comments yet.