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 | 4877 |
| 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.
EAPE 421: ECONOMICS AND PLANNING OF EDUCATION
Trending!
UPDATED NOTES ON ECONOMICS AND PLANNING OF EDUCATION
8 Pages
2694 Views
0 Downloads
611.76 KB
ECOLOGY AND ECOLOGICAL PROCESSES
Trending!
UPDATED NOTES ON ECOLOGY AND ECOLOGICAL PROCESSES
11 Pages
8923 Views
0 Downloads
1.05 MB
Water Abstraction
Trending!
Updated notes on Water Abstraction
10 Pages
8426 Views
0 Downloads
1.24 MB
AHT418: Selected Themes In East African History
Trending!
UPDATED NOTES ON SELECTED THEMES ON AFRICAN HISTORY
85 Pages
8912 Views
0 Downloads
1.12 MB
EFN 204: SOCIOLOGY OF EDUCATION
Trending!
UPDATED NOTES ON SOCIOLOGY OF EDUCATION
3075 Views
2 Downloads
766.5 KB
EMP 403: EDUCATIONAL ECONOMICS, POLICY AND PLANNING
Trending!
UPDATED NOTES ON EDUCATIONAL ECONOMICS, POLICY AND PLANNING
136 Pages
10279 Views
2 Downloads
8.71 MB
UCU 100: COMMUNICATION SKILLS
Trending!
UPDATED NOTES ON COMMUNICATION SKILLS
118 Pages
4252 Views
1 Downloads
1.89 MB
BLOSSOMS OF THE SAVANNAH SAMPLE ESSAYS
Trending!
Blossoms of the Savannah is a novel about hope that leads to victory; write a composition to illustrate on this statement.
10 Pages
2601 Views
1 Downloads
466.49 KB
BLOSSOMS OF THE SAVANNAH SAMPLE ESSAYS
Here are some KCSE essays based on Blossoms of the Savannah. This article features essay questions and answers from Blossoms of the Savannah.Before you have a look at them, jog you memory of the events in the novel with these Blossoms of the Savannah study questions.
15 Pages
1060 Views
0 Downloads
852.3 KB