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 | 4868 |
| 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.
STAGES OF PRENATAL DEVELOPMENT
Trending!
The human life cycle may be said to begin with fertilization and then proceed through prenatal growth and development, birth, postnatal growth and development, maturity, senescence,
and death. While you might think of child development as something that begins during infancy, the prenatal period is also considered an important part of the developmental process. Prenatal development is a time of remarkable change that helps set the stage for future psychological development. The brain develops over the course of the prenatal period, but it will continue to go through more changes during the early years of childhood. The process of prenatal development occurs in three main stages. The first two weeks after conception are known as the germinal stage, the third through the eighth week is known as the
embryonic period, and the time from the ninth week until birth is known as the fetal period.
7 Pages
7307 Views
0 Downloads
404.95 KB
SCH 405 :ADVANCED ELECTROCHEMISTRY
Trending!
When at least two electrodes are dipped into an electrolyte and connected by an external electrical conductor, an electric current flows and chemical reactions occur in the half cells
111 Pages
6518 Views
0 Downloads
14.67 MB
SCH 405:Further Chemical Kinetics and Electrochemistry
Trending!
Bimolecular reactions – gaseous and liquid states. Quasi equilibrium and steady state approximation theory of reaction rates. Reaction mechanisms.
205 Pages
8065 Views
0 Downloads
21.56 MB
Acid and Base catalysed enolizations, aldols and cyclizations
Trending!
Aldehydes and ketones are in equilibrium with their enol isomers.
18 Pages
5849 Views
0 Downloads
714.36 KB
NUTRIENT CYCLING
Trending!
Nutrients are essential life chemical
elements (About 16 elements). Macronutrients:-Compounds required in great quantities
38 Pages
5017 Views
0 Downloads
651.96 KB
PRIMARY PRODUCTION
Trending!
Sun's energy is harvested by plants and stored as chemical energy through photosynthesis.
55 Pages
6523 Views
0 Downloads
1.35 MB
EAST AFRICAN VEGETATION
Trending!
The diversity of climates and landforms leads to great
diversity of vegetation types in E.A. .Vegetation is influenced by eq uator, relief and altitude especially by Mt. Kenya, Kilimanjaro and Ruwenzori Mountains that are over 5000m high.
31 Pages
6065 Views
0 Downloads
1.07 MB
FRESH AND MARINE WATER COMMUNITIES (AQUATIC COMMUNITIES)
Trending!
Communities associated with freshwater lakes, river valleys and areas that are permanently or temporarily waterlogged. Waterlogging is a result of drainage impediment. These communities are ecotones between dry land and open water. Wetlands are highly productive. They are species rich as they draw them from the adjacent ecosystems.
41 Pages
5697 Views
0 Downloads
1.55 MB
EVOLUTION , VARIATION AND BREEDING MECHANISMS
Trending!
Evolution is the change over time. It leads to diversity , structural complexity and adaptive nature of plants. Organic evolution is a series of transformations in the genetic material of a population over time .The primary cause of evolution is natural selection in
response to the changing environmental interactions
16 Pages
5973 Views
0 Downloads
571.08 KB
SCIENTIFIC NAMING OF PLANTS( NOMENCLATURE)
Trending!
Nomenclature is the correct naming of plants according to specified rules. Plants were known by their common names during the pre-scientific times. The use of common names however are limited to geographical locations or cultures.
19 Pages
6125 Views
0 Downloads
563.1 KB