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 | 1508 |
| 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.
HBC2122: COMPUTER APPLICATIONS IN BUSINESS
Trending!
SECOND YEAR, SECOND SEMESTER EXAMINATION FOR THE DEGREE IN
BACHELOR OF COMMERCE
5 Pages
3711 Views
5 Downloads
580.21 KB
EPSC 123: STATISTICS IN EDUCATION
Trending!
UPDATED NOTES ON STATISTICS IN EDUCATION
38 Pages
5111 Views
12 Downloads
953.85 KB
HIST 211: THEMES IN WORLD HISTORY
Trending!
UPDATED NOTES ON THEMES IN WORLD HISTORY
3839 Views
1 Downloads
218.21 KB
HRIM 243: HEALTH ADMINISTRATIVE STATISTICS
Trending!
UPDATED NOTES ON HEALTH ADMINISTRATIVE STATISTICS
3557 Views
2 Downloads
21.4 KB
BIT 203: E-COMMERCE COURSE OUTLINE
Trending!
SOUTH EASTERN KENYA UNIVERSITY E-COMMERCE COURSE OUTLINE
3655 Views
3 Downloads
52.1 KB
HRIMY1S2 HRIM123: FUNDAMENTALS OF DEMOGRAPHY
Trending!
UPDATED NOTES ON FUNDAMENTALS OF DEMOGRAPHY
3179 Views
1 Downloads
24.82 KB
HRIM 231: HEALTH LAW AND ETHICS
UPDATED NOTES ON HEALTH LAW AND ETHICS
409 Views
0 Downloads
29.72 KB
HRIM227: INTRODUCTION TO HEALTH EDUCATION AND PROMOTION
Trending!
UPDATED NOTES ON INTRODUCTION TO HEALTH EDUCATION AND PROMOTION
3694 Views
1 Downloads
429.5 KB
COMS 101 : COMMUNICATION SKILLS
Trending!
UPDATED NOTES ON COMMUNICATION SKILLS CLASS NOTES
3223 Views
5 Downloads
594 KB
HRIM 142: Foundations of Health Services Management
Updated notes on Foundations of Health Services Management
70 Pages
758 Views
2 Downloads
1.15 MB