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 | 1500 |
| 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.
BBA302 BUSINESS LAW 2
Trending!
THIS MODULE IS A CONTINUATION OF BUSINESS LAW 1 AND IS MAINLY BASED ON THE PRINCIPLE CONTRACT
99 Pages
3604 Views
0 Downloads
1.05 MB
BAC 201: ACCOUNTING FOR LIABILITIES AND EQUITIES.
Trending!
UPDATED NOTES ON ACCOUNTING FOR LIABILITIES AND EQUITIES.
3517 Views
1 Downloads
496 KB
ECO 300: RESEARCH METHODS
Trending!
The course introduces students to the importance of research and
the research process. Issues related to research problem formulation, research design,
methods of data collection, data analysis and reporting on research findings will be
covered.
120 Pages
2435 Views
2 Downloads
1.54 MB
KISWAHILI INSHA NA USHAIRI
Trending!
UPDATED NOTES ON INSHA AND USHAIRI
21 Pages
5370 Views
2 Downloads
1.33 MB
ANALYSIS OF BUILDING THE NATION
Trending!
LATEST ANALYSIS OF BUILDING THE NATION
3686 Views
0 Downloads
34.5 KB
AKS 401: SECOND LANGUAGE LEARNING
Trending!
UPDATED NOTES ON SECOND LANGUAGE LEARNING
3879 Views
1 Downloads
388 KB
EMP 403: ECONOMICS OF EDUCATION AND PLANNING
Trending!
UPDATED NOTES ON ECONOMICS OF EDUCATION AND PLANNING
97 Pages
3802 Views
2 Downloads
451.46 KB
EET 201: MACROECONOMIC THEORY II
UPDATED NOTES ON MACROECONOMIC THEORY II
777 Views
2 Downloads
1.21 MB