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 | 5078 |
| 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.
kmtc antepartum hemorrhage notes
Trending!
Definition: Any bleeding after 28weeks gestation and before 2nd stage of delivery
Incidence - 3-4%
6 Pages
7841 Views
0 Downloads
426.39 KB
Kmtc anaemia in pregnancy notes
Trending!
Anemia in pregnancy is defined as hemoglobin concentration < 10 g/dL during
pregnancy or the puerperium.
5 Pages
8653 Views
0 Downloads
322.58 KB
Kmtc Behavioural science
Trending!
This course is aimed at equipping the trainees with relevant knowledge; skills and attitudes that shall enable them understand basic elements of human behavior and appreciate differences in human behavior.
56 Pages
8718 Views
6 Downloads
517.66 KB
APPLIED BIOLOGY NOTES
Trending!
The word biology is derived from the Greek words /bios/ meaning /life/ and /logos/ meaning /study/ and is defined as the science of life and living organisms. An organism is a living entity consisting of one cell e.g. bacteria, or several cells e.g. animals, plants and fungi.
70 Pages
9673 Views
1 Downloads
1.84 MB
HEALTH DATA CLASSIFICATION NOTES
Trending!
Refers to the translation of medical terms for diagnoses and procedures into code numbers from standardized codesets
26 Pages
8797 Views
1 Downloads
430.94 KB
KMTC HIV/AIDS NOTES
Trending!
HIV is a virus that targets and alters the immune system, increasing the risk
and impact of other infections and diseases. Without treatment, the
infection might progress to an advanced disease stage called AIDS.
However, modern advances in treatment mean that people living with HIV
in countries with good access to healthcare very rarely develop AIDS once
they are receiving treatment.
19 Pages
10026 Views
3 Downloads
208.88 KB
KMTC INTRODUCTION TO HUMAN ANATOMY AND PHYSIOLOGY
Trending!
Anatomy, from the roots "ana" (apart) and "tom" (cut), is the study of the form of the body. Anatomy names the muscles in the body and their locations
16 Pages
10498 Views
1 Downloads
827.41 KB
KMTC management of malnutrition notes
Trending!
The term malnutrition generally refers both to undernutrition and overnutrition, but in this guide we use the term to refer solely to a deficiency of nutrition
85 Pages
7993 Views
1 Downloads
2.15 MB
KMTC DIABETIC KETOACIDOSIS NOTES
Trending!
Omitting insulin in type 1 diabetes mellitus or increase in insulin requirements,
4 Pages
7331 Views
0 Downloads
230.59 KB
KMTC HAEMOPHILIA A NOTES
Trending!
A inherited blood disease where your blood does not clot normally.
2 Pages
7021 Views
0 Downloads
38.46 KB