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 | 5245 |
| 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.
DISORDER OF THE GIT
Trending!
Stomatitis is an inflammation of the mucous lining of the
mouth , which may involve the cheeks, gums ,tongue ,lips , and roof
or floor of the mouth.
• The word“ stomatitis “ literally means inflammation of the mouth
29 Pages
8202 Views
0 Downloads
1.28 MB
UCHAMBUZI WA FASIHI
Trending!
Uundaji wa maneno ni ujenzi au uzalishaji au utengenezaji wa maneno mapya. Uundaji wa maneno mapya husaidia kuongeza msamiati katika lugha ili kukidhi mahitaji ya mawasiliano. Uundaji wa maneno mapya husababishwa na mabadiliko ya kiuchumi, kisiasa na kiutamaduni na maendeleo ya kisayansi yanayotokea katika jamii.
35 Pages
5229 Views
0 Downloads
1.19 MB
SOCIAL FOUNDATIONS OF LAW
Classes are large groups of people distinguished by their position in the system of
social production, by their relationship to the means of production, by their role in the
social organisation of labour and by their share of the social wealth. Marxist scholars have done profound research in the area of class formation.
51 Pages
441 Views
0 Downloads
894.89 KB
PSY 311: MEASUREMENT AND EVALUATION
Trending!
The course is concerned with behavioral statistics, measurement and classroom assessment in which the following main topics will be covered; Measurement and its significance in the behavioral studies. Statistics –descriptive and inferential statistics, graphical representation of statistical data. Measures of association or relationship and Measurement of dispersion or spread.
64 Pages
7674 Views
0 Downloads
1.88 MB
UCU 002: COMPUTER SKILLS AND APPLICATION
Trending!
The aim of this course is to provide a comprehensive understanding of how computers work and the use of application software in businesses today.
106 Pages
4951 Views
1 Downloads
2.62 MB
BEM 2209: EDUCATIONAL PLANNING AND ECONOMICS
Trending!
The Purpose of this module; Economics of Education, is to Equip the learner with knowledge, skills and information regarding the major problem of Economics of Education and Education Planning Affecting the country and other Developing Countries.
103 Pages
9050 Views
2 Downloads
1.09 MB
ASO 816: COMMUNITY DEVELOPMENT
Trending!
Community development is a process where community members come together to take collective action and generate solutions to common problems. Community wellbeing (economic, social, environmental and cultural) often evolves from this type of collective action being taken at a grassroots level.
65 Pages
6207 Views
1 Downloads
1.36 MB
BGS 120: GEOGRAPHY OF NATURAL RESOURCES
Trending!
The natural resources course provides students with technical and scientific
knowledge spanning various natural resource and social science disciplines. The
student will study the science and management of resources such as energy, fish
and wildlife, forests, range and water. This course prepares you for careers in
resource planning, management, conservation and education within the field of
natural resources.
61 Pages
8599 Views
2 Downloads
1.64 MB
BGS 220: EAST ARICAN ENVIRONMENTS
Trending!
The physical environment generally includes land, air, water, plants and animals, buildings and other infrastructure, and all of the natural resources that provide our basic needs and opportunities for social and economic development.
61 Pages
7130 Views
1 Downloads
2.05 MB
COMPUTATIONAL MATHEMATICS 1 KNEC NOTES
Trending!
In mathematics an equation is an expression of the shape A = B, where A and B are expressions containing one or several variables called unknowns. An algebraic equation or polynomial equation is an equation in which both sides are polynomials
200 Pages
9062 Views
2 Downloads
4.36 MB