INTRODUCTION TO C++ PROGRAMMING YEAR 1
| Institution | UNIVERSITY |
| Course | BACHELOR OF SCIENCE... |
| Year | 1st Year |
| Semester | Unknown |
| Posted By | stephen oyake rabilo |
| File Type | |
| Pages | 33 Pages |
| File Size | 207.62 KB |
| Views | 1478 |
| Downloads | 0 |
| Price: |
Buy Now
|
Description
First Class In C++
Adapted from : http://www.cplusplus.com/doc/tutorial/tut1-1.html
Structure of a C++ program
Probably the best way to start learning a programming language is with a program. So here is our
first program:
// my first program in C++
#include <iostream.h>
int main ()
{
cout << "Hello World!";
return 0;
}
Hello World!
The left side shows the source code for our first program, which we can name, for example,
hiworld.cpp. The right side shows the result of the program once compiled and executed. The way to
edit and compile a program depends on the compiler you are using. Depending on whether it has a
Development Interface or not and on its version. Consult section compilers and the manual or help
included with your compiler if you have doubts on how to compile a C++ console program.
The previous program is the first program that most programming apprentices write, and its result is
the printing on screen of the "Hello World!" sentence. It is one of the simpler programs that can be
written in C++, but it already includes the basic components that every C++ program has. We are
going to take a look at them one by one:
Below is the document preview.
GEOGRAPHY SCHEMES OF WORK FORM ONE TERM 1-3
Trending!
UPDATED GEOGRAPHY SCHEMES OF WORK FORM ONE TERM 1-3
3127 Views
0 Downloads
276 KB
GEOGRAPHY SCHEMES OF WORK FORM THREE TERM 1-3
Trending!
UPDATED GEOGRAPHY SCHEMES OF WORK FORM THREE TERM 1-3
3740 Views
0 Downloads
295.5 KB
GEOGRAPHY SCHEMES OF WORK FORM FOUR TERM 1-3
Trending!
UPDATED GEOGRAPHY SCHEMES OF WORK FORM FOUR TERM 1-3
3586 Views
1 Downloads
218.5 KB
EDITING FOR PRINT MEDIA
Trending!
Editing is the process of selecting and preparing written, visual, media used to convey information. The editing process can involve correction, condensation, organization, and many other modifications performed with an intention of producing a correct, consistent, accurate and complete work.
45 Pages
3435 Views
0 Downloads
1.3 MB
MATHEMATICS SCHEMES OF WORK FORM ONE TERM 1-3
Trending!
UPDATED MATHEMATICS SCHEMES OF WORK FORM ONE TERM 1-3
3849 Views
0 Downloads
267 KB
MATHEMATICS SCHEMES OF WORK FORM TWO TERM 1-3
Trending!
UPDATED MATHEMATICS SCHEMES OF WORK FORM TWO TERM 1-3
4023 Views
1 Downloads
367.5 KB
MATHEMATICS SCHEMES OF WORK FORM THREE TERM 1-3
Trending!
MATHEMATICS SCHEMES OF WORK FORM THREE TERM 1-3
3280 Views
0 Downloads
357 KB
MATHEMATICS SCHEMES OF WORK FORM FOUR TERM 1-3
Trending!
UPDATED MATHEMATICS SCHEMES OF WORK FORM FOUR TERM 1-3
4748 Views
1 Downloads
189 KB
KISWAHILI KIDATO CHA 1 MIPANGO YA KAZI – MUHULA WA 1-3
Trending!
KISWAHILI KIDATO CHA 1 MIPANGO YA KAZI – MUHULA WA 1-3
3566 Views
0 Downloads
1.49 MB
KISWAHILI KIDATO CHA 3 MIPANGO YA KAZI – MUHULA WA 1-3
Trending!
KISWAHILI KIDATO CHA 3 MIPANGO YA KAZI – MUHULA WA 1-3
3460 Views
0 Downloads
211.5 KB