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 | 4860 |
| 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.
HRIM 243: HEALTH ADMINISTRATIVE STATISTICS
Trending!
UPDATED NOTES ON HEALTH ADMINISTRATIVE STATISTICS
8981 Views
2 Downloads
21.4 KB
BIT 203: E-COMMERCE COURSE OUTLINE
Trending!
SOUTH EASTERN KENYA UNIVERSITY E-COMMERCE COURSE OUTLINE
9047 Views
3 Downloads
52.1 KB
HRIMY1S2 HRIM123: FUNDAMENTALS OF DEMOGRAPHY
Trending!
UPDATED NOTES ON FUNDAMENTALS OF DEMOGRAPHY
8727 Views
1 Downloads
24.82 KB
HRIM 231: HEALTH LAW AND ETHICS
UPDATED NOTES ON HEALTH LAW AND ETHICS
603 Views
0 Downloads
29.72 KB
HRIM227: INTRODUCTION TO HEALTH EDUCATION AND PROMOTION
Trending!
UPDATED NOTES ON INTRODUCTION TO HEALTH EDUCATION AND PROMOTION
8865 Views
1 Downloads
429.5 KB
COMS 101 : COMMUNICATION SKILLS
Trending!
UPDATED NOTES ON COMMUNICATION SKILLS CLASS NOTES
4695 Views
5 Downloads
594 KB
HRIM 142: Foundations of Health Services Management
Updated notes on Foundations of Health Services Management
70 Pages
1777 Views
2 Downloads
1.15 MB
CHEMISTRY SYLLABUS
Trending!
UPDATED KNEC CHEMISTRY SYLLABUS
25 Pages
9650 Views
2 Downloads
1.15 MB
KENYA SIGN LANGUAGE SYLLABUS
Trending!
UPDATED KNEC KENYA SIGN LANGUAGE SYLLABUS
7 Pages
11132 Views
11 Downloads
808.57 KB
BUSINESS STUDIES SYLLABUS
Trending!
UPDATED KNEC BUSINESS STUDIES SYLLABUS
16 Pages
9539 Views
0 Downloads
2.3 MB