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 | 2005 |
| 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.
BIOMOLECULES
Carbohydrates ,proteins and lipids are important sources of energy and are acquired from diets or meals. Carbohydrates are stored as glycogen in the liver and muscle cells whereas lipids are stored as triacylglycerols in the adipose tissue.
435 Views
0 Downloads
271.68 KB
FIRST AID NOTES
First aid is the temporary and immediate treatment given to a person who is injured or suddenly becomes ill, using facilities or materials available at the time before regular medical help is imparted.
48 Pages
780 Views
1 Downloads
782.59 KB
PRIMARY HEALTH CARE & CBHC
Trending!
The concept of health has suffered stereotyped definitions, conceptualized mainly by medical professionals to mean diseases, drugs, injury, treatment and building institutions centered on clinicians such as doctors and nurses.
2242 Views
0 Downloads
1.54 MB
POSITIONING OF PATIENTS
Trending!
This refers to moving a patient into a specific position or posture to facilitate examination, surgery or therapeutic functions. It involves placing the person in proper body alignment for the purpose of preventive, promotive, curative, and rehabilitative aspect of health.
2206 Views
0 Downloads
171.18 KB
EDU 411E: BASIC HEALTH AND FIRST AID
Trending!
The module EDU 411E intends to equip you with knowledge, skills and attitudes required to enable you to identify how to keep healthy physically, socially, mentally and emotionally and be able to handle First Aid cases.
2744 Views
1 Downloads
1.94 MB
CHANGE AND MANAGEMENT OF CHANGE
Trending!
Change is the process of altering the behaviour, structures, procedures, purposes and or outputs of unit or units in an organization. Change is a process not an event. As a process change involves:- Initiation,Implementation & Evaluation
4142 Views
2 Downloads
34.5 KB
CHEMISTRY PRACTICAL STUDY PACK
This booklet contains practical questions, coordinated mark schemes, preparation and confidential instructions. It’s ideal for your preparations for National Exams.Download your copy today!
No pages found
1209 Views
1 Downloads
1.67 MB