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 | 5082 |
| 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.
Haemoglobin
Trending!
Detailed notes on haemoglobin, its structure, types and molecule
67 Pages
6155 Views
0 Downloads
3.03 MB
POSITIONS USED IN NURSING
Trending!
Latest notes on positions used in nursing
7858 Views
0 Downloads
1.4 MB
MASCLOSKELETAL CARE MODALITIES
Trending!
Detailed notes onmascloskeletal care modalities
93 Pages
6644 Views
0 Downloads
1.01 MB
BLA 4209: VARIETIES OF ENGLISH
Trending!
This course helps the learners to examine how the notion of language variation applies to English in today’s worlds
45 Pages
8434 Views
1 Downloads
739.46 KB
Grinding Fixtures
Trending!
The work holding devices for grinding operations will depend upon the type of the
grinding operation and the machine used. This module contains the different types of grinding fixtures used
25 Pages
6411 Views
0 Downloads
798.52 KB
EAC2240: CHAIN SURVEYING NOTES
Trending!
This course contains detailed notes on chain surveying, its definations, illustraions and its principles
25 Pages
6489 Views
0 Downloads
1.18 MB
EDF 110: History of Education.
Trending!
The term education is a complex concept meaning it is not easy to define "Education" originated from Latin word "educare" meaning the process of moulding, growing up or rearing. Used in reference of plants as well as animals
10031 Views
2 Downloads
267.5 KB
EET 200: INTERMEDIATE MICROECONOMICS THEORY
Trending!
In your elementary microeconomics, the basic principles of consumer behaviour were
introduced by laying a strong foundation on the theory of demand on which premise
the consumer behaviour is build upon. The consumer behaviour is introduced as a
utility maximising behaviour but subject to consumer’s ability to purchase. A consumer is portrayed as an agent who goes for the best that he/she can afford.
76 Pages
8285 Views
1 Downloads
405.79 KB
THE CONTENT/CONCERN OF SOCIOLOGY OF EDUCATION
Education is a social institution that sociologists are very interested in studying. This
includes teaching formal knowledge such as reading, writing, and arithmetic, as well as teaching other things such as morals, values, and ethics. Education prepares young people for entry into society and is thus a form of socialization. A sociologist wants to know how this form of socialization affects and is affected by other social structures, experiences, and outcomes.
253 Views
0 Downloads
96.5 KB