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 | 2121 |
| 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.
EMBROLOGY.
Trending!
ANAPHASE. Each chromosome undergoes a
longitudinal division of the centromere and give rise to
two daughter chromosomes. The daughter
chromosomes begins to migrate towards the opposite
poles of the cell
196 Pages
2318 Views
0 Downloads
3.35 MB
CARDIOVASCULAR PHYSIOLOGY
Trending!
The cardiovascular system (cardio- heart; vascular blood vessels) consists of three interrelated components: blood, the heart, and blood vessels. In the embryo, the heart begins to beat at 4 weeks of age, even before its nerve supply has been established The heart pumps blood through blood vessels to all body tissues. the heart beats about 100,000 times every day When sleeping, the heart pumps 30 times its own weight (5 L) each minute, which amounts to more than 14,000 liters of blood in a day and 10 million liters in a year
47 Pages
2927 Views
0 Downloads
858.17 KB
ANATOMY AND PHYSIOLOGY
a continuous tube that extends from mouth to
the anus through the thoracic and abdominopelvic cavities The accessory digestive organs; teeth, tongue,
salivary glands, liver, gallbladder, and pancreas The length of the GI tract is about 5–7 metres in
a living person
3 GASTROINTESTINAL SYSTE
60 Pages
833 Views
0 Downloads
1.15 MB
AGD 203: GENDER, AGRICULTURE AND DEVELOPMENT
Trending!
Agriculture is the art and science of cultivating the soil, growing crops and raising livestock. It includes the preparation of plant and animal products for people to use and their distribution to markets. Agriculture provides most of the world's food and fabrics.
37 Pages
2558 Views
1 Downloads
1.56 MB
APS 304; ABNORMAL PSYCHOLOGY
Trending!
As far as historians can ascertain, Paleolithic people saw no distinction between medicine, magic, and religion. Archeologists have uncovered skulls with holes drilled in them dating back as far as 8,000 B.C. Researchers have determined that, for some, bone healed near these holes indicating that the procedure may have been surgical and that the person survived.
Many theories have been developed as a means to explain the purpose behind this surgery, called trephining.
83 Pages
3120 Views
0 Downloads
1.14 MB
AGD 201: Rationale for Theory in Development
Trending!
Theory- is a system of ideas intended to explain something or a phenomenon. For example, Darwin’s theory of evolution. Theory is built upon one or more hypothesis and upon evidence. A theory contains reasoning and logical connections that lead to certain conclusions. Theories can change based on new evidence. Can you think of theories that your teachers used in different subjects during your secondary education? For instance, the plat tectonic theory which explains landmass motion to form continents; the newton’s theory of gravity; the cell theory of organisms etc.
21 Pages
3963 Views
0 Downloads
500.1 KB
GROUP THEORY AND ITS APPLICATIONS
Trending!
The concept of symmetry and group theory are important in chemistry to
study the structure of molecules. The measurement of crystal structures, infra–
red spectra, ultra–violet spectra, dipole moments and optical activities, all these
are properties which depend on molecular symmetry. The term symmetry is
synonymous to beauty. The nature has made most of its creation symmetrical i.e., the sun planets animals and plants. symmetry is present in geometrical figures, crystalline solids and molecule. Entities which possess more element of symmetry
are more symmetrical
44 Pages
4848 Views
0 Downloads
367.67 KB
KCSE CRE paper 2 Revision Questions and Answers
This is KCSE CRE paper 2 Revision Questions and Answers to help the student understand and know how to answer examination Questions relating to this subject.
6 Pages
1450 Views
6 Downloads
945.9 KB
KCSE CRE paper 2 Revision Questions and Answers
Trending!
This is KCSE CRE paper 2 Revision Questions and Answers to help the student understand and know how to answer examination Questions relating to this subject.
6 Pages
3745 Views
8 Downloads
945.9 KB
KCSE CRE PAPER 2 REVISION QUESTIONS AND ANSWERS
Trending!
This is KCSE CRE paper 2 Revision Questions and Answers to help the student understand and know how to answer examination Questions relating to this subject.
6 Pages
5238 Views
10 Downloads
945.9 KB