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 | 2096 |
| 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.
APP 304: EDUCATION POLICY IN DEVELOPED AND DEVELOPING COUNTRIES
Trending!
Education policy is any deliberate policy decision carried out by the government to solve a problem or serve a need in the education sector. It is a social policy. As a social policy, it is put in place to sustain people's livelihood through education.
79 Pages
2830 Views
2 Downloads
1.64 MB
APS 103: HISTORY AND SYSTEMS OF PSYCHOLOGY
Trending!
This course is a survey of the origin and development of Psychology in relation to
contemporary Psychology and its foundations in Philosophy and Physiology. Special attention is given to the systems of thought that have emerged since the founding of Psychology as an empirical science.
121 Pages
3106 Views
0 Downloads
946.32 KB
APS 101: INTRODUCTION TO PSYCHOLOGY
Trending!
Ethics refers to the correct rules of conduct necessary when carrying out research. We have a moral responsibility to protect research participants from harm.Researchers have a duty to respect the rights and dignity of research participants. They must abide by certain moral principles and rules of conduct which include
33 Pages
3680 Views
6 Downloads
531.94 KB
APS 310: INTRODUCTION TO PSYCHOLOGY FULL NOTES
Trending!
Neuropsychology is a branch of psychology that studies how the nervous system
(particularly the brain) influences behaviour and mental processes. It is the study of how the complex properties of the brain allow for the behaviour to occur.
141 Pages
4100 Views
1 Downloads
1.69 MB
COMMUNITY HEALTH III
Principles of epidemiology: Definitions of terms, purpose of epidemiology, differences
between epidemiological and clinical focus, sources of epidemiological information, mortality and morbidity statistics, epidemiological concepts, epidemiological studies.
2. Communicable diseases: Definition, standard case definition, classification, principles in management, prevention and control, notification and reporting of emerging and re-emerging infections, infestations, specific communicable diseases.
431 Pages
404 Views
1 Downloads
3.75 MB
CONDITIONS FOR THE UPPER RESPIRATORY TRACT
Trending!
Hemorrhage from the nose
Attributed to rupture of distended tiny blood vessels in the mucous membrane of the nasal cavity
Commonly occur at the anterior nasal septum, where 3 blood vessels meet at the nasal cavity;
Anterior ethmoidal artery on the anterosuperior of the roof
Sphenopalatine artery in the posterosuperior region
Internal maxillary branches
Causes:
Trauma
Infections
Inhalation of illicit drugs
Cardiovascular diseases
Nasal tumors
Low humidity
Foreign body in the nose
38 Pages
3343 Views
1 Downloads
630.09 KB
CARDIOVASCULAR SYSTEM PHARMACOLOGY
Trending!
An Inotrope is an agent which increases or decreases the
force of muscular contraction of the heart and Cardiac output.
Inotropes act on the alpha, beta1 and beta2 receptors.
Physiologically:
a. Alpha receptors causes peripheral vasoconstriction and
increased vascular resistance
43 Pages
3959 Views
0 Downloads
870.41 KB
BIOLOGY FORM 1 NOTES
The purpose of this subject is to equip the student with knowledge and skills to enable him or her understand biology into details and pass the exams well
53 Pages
1357 Views
1 Downloads
1.12 MB
KMTC COMMUNITY HEALTH Notes
Trending!
The purpose of this unit or module is to equip the student or trainee with knowledge and skills to enable him or her understand the concepts of community health in their local regions deeply
99 Pages
5273 Views
10 Downloads
2.71 MB
APS 215: PSYCHOLOGY OF GENDER
Trending!
The purpose of this module is to equip students with knowledge on how Gender issues affect Human behavior and Society. It examines various theories of gender, stereotypes and the impact of gender prejudices on society.
102 Pages
2440 Views
0 Downloads
1.3 MB