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 | 4887 |
| 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.
FORM 1 GEOGRAPHY UPDATED NOTES
Trending!
Geography is the study of interrelationship on natural and human phenomena on the earth’s surface.
9104 Views
1 Downloads
264.68 KB
FORM 2 GEOGRAPHY UPDATED NOTES
Trending!
Processes operating in the interior of the earth resulting in the formation of natural physical features or landforms. They are caused by earth movements. Examples of these processes are folding, faulting and Vulcanicity.
9735 Views
1 Downloads
351.37 KB
FORM 3 GEOGRAPHY UPDATED NOTES
Trending!
Download the latest updated Geography notes for Form Three.
10861 Views
1 Downloads
861.29 KB
FORM 4 GEOGRAPHY UPDATED NOTES
Trending!
Land reclamation is the process of converting wasteland into farm land for growing of crops and keeping of animals while land rehabilitation is the process of restoring land to its former productive state.
9208 Views
1 Downloads
166.94 KB
GEOGRAPHY FORM 1 REVISION BOOKLET
Trending!
The booklet contains topical question and answers for Geography Form 1 syllabus.
21 Pages
9720 Views
3 Downloads
1.15 MB
GEOGRAPHY NOTES FORM 1-4 BOOKLET
Trending!
The booklet contains all the notes from form one to form four,as laid out in the Geography syllabus.
12636 Views
8 Downloads
1.58 MB
GEOGRAPHY PAPER 2 REVISION NOTES
Recommended!
Trending!
The booklet contains notes on Geography Paper 2 Topics. It also has a series of questions and answers for areas covered in PP2.
66 Pages
13174 Views
21 Downloads
762.86 KB
TOP STUDENT REVISION GEOGRAPHY PAPER 2
Trending!
The booklet contains a collection of PP2 questions and answers,it a great revision material for candidates. Grab a copy!
64 Pages
10440 Views
3 Downloads
657.53 KB
GEOGRAPHY REVISION NOTES FOR PAPER 1
Recommended!
Trending!
The booklet contains questions and answers on topics tested in Geography Paper 1
33 Pages
14034 Views
32 Downloads
569.36 KB
HRIM141: INTRODUCTION TO MEDICAL STATISTICS
Trending!
UPDATED NOTES ON INTRODUCTION TO MEDICAL STATISTICS
90 Pages
9676 Views
1 Downloads
1.28 MB