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 | 2001 |
| 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.
History form 2 exams paper 1 and 2 (with marking schemes)
Trending!
This entails form 2 exams for term two.Besides,it has both paper 1 and 2.Therefore it is very useful for your students
7180 Views
10 Downloads
40.47 KB
Elegant business card template
Trending!
Photoshop psd elegant business card template free
7737 Views
0 Downloads
2.62 MB
Awesome insiring web design template
Trending!
Free awesome responsive bootstrap web design template
4187 Views
0 Downloads
2.8 MB
BIOCHEMISTRY
Polyurethanes are prepared from diisocyanates
and diols. Urethane (also called a carbamate) is a
functional group that contains both an ester and an
amide at a single carbonyl group.
Nucleophilic Addition Reaction: Example 1:
Sevin is a highly effective, biodegradable insecticide. It
affects the nervous systems of insects by blocking
access to the neurotransmitter acetylcholine.
57 Pages
800 Views
0 Downloads
1.68 MB
BIOCHEMISTRY
PETROLEUM CHEMISTRY
Carbon is so Important in the Life Cycle. It has
numerous ways of bonding with many other
elements, particularly oxygen and hydrogen.
It can form both “organic” and “inorganic”
compounds. Organic compounds are considered
unstable in the biosphere because they are in the
reduced state.
Whereas Inorganic compounds, principally
calcite (CaCO3
) and dolomite (CaMg(CO3
)2
), are
stable because they are in the oxidized state.
Carbon is present in most substances that are
vital for the development of life (called
“biomolecules”): Proteins, lipids, sacharides, etc
76 Pages
738 Views
0 Downloads
1.86 MB
BIOCHEMISTRY
Alkyl halides are organic molecules containing a halogen
atom bonded to an sp3 hybridized carbon atom.
• Alkyl halides are classified as primary (1°), secondary (2°),
or tertiary (3°), depending on the number of carbons bonded
to the carbon with the halogen atom.
• The halogen atom in halides is often denoted by the symbol
“X”.
53 Pages
757 Views
0 Downloads
2.07 MB
BIOCHEMISTRY
Natural Gas
Natural gas is a gaseous fossil fuel consisting
primarily of methane but including significant
quantities of ethane, butane, propane, carbon
dioxide, nitrogen, helium and hydrogen sulfide.
Obtained from oil fields and natural gas fields,
and in coal beds.
Methane-rich gases are produced by the
anaerobic decay of non-fossil organic material, ie
biogas.
Total world production of natural gas in 1986
was 100 trillion m3
.
It is used as feed stock as well as fuel. It is
preferred due to its high Calorific Value
52 Pages
704 Views
0 Downloads
1.17 MB
Calculus 1 First Year
Trending!
Excelling in Calculus is the key
81 Pages
3820 Views
2 Downloads
841.91 KB