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 | 1537 |
| 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.
HUMAN ANATOMY & PHYSIOLOGY
UPDATED NOTES ON HUMAN ANATOMY & PHYSIOLOGY
69 Pages
391 Views
0 Downloads
731.67 KB
ARE401: CHRISTIAN RESPONSE TO CONTEMPORARY ISSUES
Trending!
UPDATED NOTES ON CHRISTIAN RESPONSE TO CONTEMPORARY ISSUES
99 Pages
4454 Views
0 Downloads
971.15 KB
BBM 124: PRINCIPLES OF MARKETING
UPDATED NOTES ON PRINCIPLES OF MARKETING
60 Pages
504 Views
0 Downloads
324.01 KB
HM204: Human Resource Managment
Trending!
Updated Notes on Human Resource Managment
272 Pages
3187 Views
0 Downloads
2.41 MB
FORM 1 GEOGRAPHY UPDATED NOTES
Trending!
Geography is the study of interrelationship on natural and human phenomena on the earth’s surface.
3956 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.
3964 Views
1 Downloads
351.37 KB
FORM 3 GEOGRAPHY UPDATED NOTES
Trending!
Download the latest updated Geography notes for Form Three.
4309 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.
3820 Views
0 Downloads
166.94 KB
GEOGRAPHY FORM 1 REVISION BOOKLET
Trending!
The booklet contains topical question and answers for Geography Form 1 syllabus.
21 Pages
4397 Views
3 Downloads
1.15 MB