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 | 2047 |
| 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.
STEEL
Trending!
Steel is one of the most commonly used materials in civil engineering due to its high strength, durability and relatively low cost. It is an alloy of iron and a number of other elements including carbon. Manufacturers produce different types of steel by varying the type and quantity of alloy components, as well as the production process and the manner in which they are worked.
16 Pages
2431 Views
0 Downloads
261.83 KB
PEOPLE WITH SPECIAL NEEDS IN THE COMMUNITY
Trending!
A child in need is one who has been abandoned, orphaned, or one whose parents are incapable of looking after them properly. Such a child needs the best possible alternative arrangements for their care in the absence of the parents.
54 Pages
2103 Views
0 Downloads
1.15 MB
GLASS
Glass, an inorganic solid material that is usually transparent or translucent as well as hard, brittle, and impervious to the natural elements Glass is used in the building industry as insulation material, structural component, external glazing material, cladding material; it is used to make delicate looking fenestrations on facades as well as conventional windows. It is also used as solar power glass and switchable glass projection screens
11 Pages
405 Views
0 Downloads
491.11 KB
COMMUNITY DIAGNOSIS
Community diagnosis is a process through which health workers and community members identify community’s priority health problem, and together make plan of action and implement them.
123 Pages
332 Views
1 Downloads
4.32 MB
Family planning and contraception
Trending!
By the end of this session the trainees will be able to effectively discuss methods of
family planning.
263 Pages
2621 Views
0 Downloads
1.66 MB
MECHANISMS OF STRUCTURE
A structure is basically anything constructed or built from different interrelated parts. It is designed to bear loads. The externally applied loads will cause a particular response in the structure in terms of internal forces.
13 Pages
1868 Views
0 Downloads
674.43 KB
EAAE2155: STRUCTURES 2A
Trending!
A force as you defined in secondary school is a push or pull. Forces may fail to change an object’s motion if they are cancelled by other forces, e.g. the force of gravity pulling you down right now is being cancelled by the force of the chair pushing up on you. When nothing is moving, forces are balanced. The metric unit of force is the Newton (N). Forces may be internal (forces
acting within the structure itself) or external (forces acting on the object from the outside) In simple terms; when you take a force and divide it over a particular crosssectional area you get stress.
27 Pages
2104 Views
0 Downloads
976.69 KB
SOCIAL PSYCHOLOGY AND HUMAN DEVELOPMENT
Trending!
Growth refers to the process of growing up including development of the human body as it gets older and the psychology development of person as he/she matures. Development can also be looked as a progressive series of changes that occurs in predictable pattern as the result of interaction between biological and environment factors.
166 Pages
2829 Views
5 Downloads
1.48 MB
DISASTER MANAGEMENT
The module unit is designed to equip the trainee with knowledge, skills and attitudes that will enable him/her to effectively manage disaster in a society.
124 Pages
290 Views
2 Downloads
1.19 MB
INTRODUCTION TO RESOURCE MANAGEMENT
Trending!
Resource is anything that we can term to use or anything that we can use to generate well or other term of utility. Management is appropriate, efficient and effective use of resources. Resource management is the practice of deliberate, effective and efficient use/utilization of resources.
27 Pages
2706 Views
0 Downloads
507.8 KB