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 | 5147 |
| 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.
NUL 126: Nutrition in the Life Span
Trending!
This unit concentrates on the nutritional requirements in the lifecycle, starting from foetal life to the elderly. It consists of nine chapters. In the first chapter, we give a background of the lifecycle and intergenerational nature of nutrition, and revisit the food pyramid. The other chapters cover the specific age groups or stages in life.
110 Pages
7202 Views
0 Downloads
1.14 MB
RENAL SYSTEM
Trending!
Urine formation begins with plasma passing across the wall of glomerular capillaries.
38 Pages
7853 Views
0 Downloads
701.85 KB
MICROCONTROLLER TECHNOLOGY NOTES
Trending!
Microcomputer is a complete computer system comprising at least three major components, the microprocessor (CPU), Memory and IO peripheral components. A microcomputer could be a general purpose computer (like a PC) or a system designed to fulfill a special task (for example a controller system inside an instrument, microcontroller).
85 Pages
7790 Views
0 Downloads
7.09 MB
Power Electronics Notes
Trending!
Power Electronics involves combination of these areas. The function of PE is to process
and control the electrical energy by supplying voltage and current in a form that is
optimally suited to the load.
63 Pages
7453 Views
0 Downloads
9.16 MB
APPLIED BIOLOGY
The word biology is derived from the Greek words /bios/ meaning /life/ and /logos/ meaning /study/ and is defined as the science of life and living organisms. An organism is a living entity consisting of one cell e.g. bacteria, or several cells e.g. animals, plants and fungi.
70 Pages
273 Views
0 Downloads
1.84 MB
MICROBIOLOGY NOTES
Capsule - Some species of bacteria have a third protective covering, a capsule made up of polysaccharides (complex carbohydrates). Capsules play a number of roles, but the most important are to keep the bacterium from drying out and to protect it from phagocytosis (engulfing) by larger microorganisms.
103 Pages
1739 Views
1 Downloads
2.16 MB
INTRODUCTION TO SYSTEMS ANALYSIS AND DESIGN THEORY NOTES
Trending!
A system is a set of an orderly grouping of interdependent components linked/put together according to a plan to achieve a specific objective. Examples include, computer system, music system etc.
105 Pages
5999 Views
0 Downloads
1.27 MB
HE/CU/TT/CC/03/6/A: COMMON DISEASES
This unit specifies the competencies required to demonstrate the knowledge of common diseases. It involves identifying the stages of disease development, demonstrating the knowledge of communicable diseases, non-communicable diseases and management of common diseases
14 Pages
1043 Views
4 Downloads
299.77 KB
Occupational health and safety
Trending!
This unit specifies the competencies required to lead the implementation of workplace’s safety and health program, procedures and policies/guidelines
25 Pages
4170 Views
1 Downloads
487.91 KB
HE/CU/TT/CC/04/6/A: PROVISION OF FIRST AID SERVICES
Trending!
This unit specifies the competencies required to provide first aid. It involves providing
cardio- pulmonary resuscitation; managing choking, burns, scalds, trauma, nose bleeding,
cuts, fractures, drowning, poisoning and snake bites. It also involves assisting patients with
existing conditions such as asthma, epilepsy and diabetes
32 Pages
7273 Views
1 Downloads
489.01 KB