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 | 4912 |
| 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.
Water Treatment
Trending!
Updated notes on Water Treatment
14 Pages
7698 Views
0 Downloads
640.83 KB
EAPE 421: ECONOMICS AND PLANNING OF EDUCATION
Updated notes on economics and planning of education
7 Pages
1794 Views
0 Downloads
618.76 KB
COMPONENTS OF THE NATURAL ENVIRONMENT
Trending!
This course consists of different types of natural environment, its components
and features and interlinkages of the components of the natural environment.
8 Pages
8193 Views
0 Downloads
802.55 KB
Introdcution to computers
Trending!
Detailed notes on intoduction to computers
47 Pages
8206 Views
0 Downloads
1.27 MB
Crystal Structures Material Science I
Trending!
Updated notes on Crystal Structures Material Science I
26 Pages
8830 Views
0 Downloads
1.23 MB
A GUIDE TO COMPOSITION WRITING
Trending!
Composition writing is an important component in the KCPE examination Primary English Paper. In fact it constitutes over 40% of what a candidate gets in the English paper. It goes without saying that highlighting on the various skills, principles and challenges in writing a composition would be very useful to KCPE examination candidates.
56 Pages
9323 Views
0 Downloads
780.69 KB
IMAGINATIVE COMPOSITION: A TEACHER'S MARKING GUIDE
Trending!
A comprehensive guide to marking of a composition.
39 Pages
9295 Views
1 Downloads
675.67 KB
C.R.E COUNTY MOCKS BOOKLET
Trending!
The booklet contains CRE mock papers from over 15 counties,Both paper 1 & 2,All with a comprehensive marking scheme at the end of every paper. its i deal for revision.Get a copy!
224 Pages
8552 Views
0 Downloads
1.2 MB
ENGLISH FORM 1 NOTES
Trending!
Get a copy of the Secondary English Simplified Notes Form One.
113 Pages
9526 Views
0 Downloads
1.03 MB
AGRICULTURE FORM 2 UPDATED NOTES
Trending!
9.0.0 Soil Fertility II (Inorganic Fertilizers) (12 Lessons)
10.0.0 Crop Production II (Planting) (16 Lessons)
11.0.0 Crop Production III (Nursery Practices) (16 Lessons)
12.0.0 Crop Production IV (Field Practices) (14 Lessons)
13.0.0 Crop Production V (Vegetables) (16 Lessons)
14.0.0 Livestock Health I (Introduction) (16 Lessons)
15.0.0 Livestock Health II (Parasites) (16 Lessons)
16.0.0 Livestock Production II (Nutrition) (12 Lessons)
104 Pages
10859 Views
3 Downloads
1.43 MB