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 | 5296 |
| 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.
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
457 Views
2 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
6688 Views
0 Downloads
1.66 MB
MECHANISMS OF STRUCTURE
Trending!
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
6203 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
6398 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
7051 Views
6 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
436 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
6280 Views
0 Downloads
507.8 KB
RESOURCE MOBILIZATION AND FUNDRAISING
Resources are the inputs that are used in the activities of a project; these are the things that are required to ensure tat an organization undertakes its activities and programs effectively. Organizations are required to take many activities; in order to implement its activities, it is important that the organization secure resources to do so. This is known as resource mobilization.
21 Pages
1753 Views
1 Downloads
484.98 KB
INTRODUCTION TO HIV AND AIDS
Trending!
HIV is the acronym for the human immunodeficiency virus. HIV is virus that causes the incurable acquired immunodeficiency syndrome (AIDS). Over time, HIV destroys the helper T cells of the body's immune system, resulting in a critical deterioration of the immune system and the ability of the body to fight infection.
30 Pages
7190 Views
0 Downloads
645.59 KB
DRUG AND SUBSTANCE ABUSE
In the broadest terms, a drug is any substance which changes the way the body functions,mentally, physically or emotionally, This definition does not discriminate between alcohol, tobacco, caffeine, solvents, over the counter drugs, prescribed drugs and illicit drugs but rather it focuses on changes in the body and/or behaviour brought about through the use of such substances.
41 Pages
1788 Views
0 Downloads
1.32 MB