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 | 5074 |
| 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.
KMTC PEPTIC ULCER NOTES
Trending!
The stomach is a muscular bag forming the widest and most distensible part of the digestive tube. It is connected above to the lower end of the esophagus and below to the duodenum. It acts as a reservoir of food and helps in digestion of carbohydrates, proteins and fats.
11 Pages
7257 Views
0 Downloads
365.61 KB
KMTC DRUG AND SUBSTANCE ABUSE NOTES
Trending!
A drug is any substance or product that once taken in the body is capable of causing
physiological and psychological changes
12 Pages
7464 Views
2 Downloads
682.84 KB
KMTC BURNS NOTES
Trending!
Tissue injury caused by thermal, radiation, chemical, or electrical contact resulting in protein denaturation, loss of
intravascular fluid volume due to increased vascular permeability and edema.
16 Pages
7996 Views
0 Downloads
601.28 KB
Supply Chain Management - International Purchasing Notes
Trending!
International purchasing is buying outside the firms’ country of manufacture. There are other names used to refer to international purchasing such as
- International buying
- Multiple purchasing
- Foreign sourcing/purchasing
- Abroad sourcing
- Overseas purchasing
29 Pages
8649 Views
3 Downloads
490.17 KB
RABBIT PRODUCTION NOTES
Trending!
Rabbits belong to the family leporidae characterized by
- Long ears
- Long hind legs
- Soft fur
-Cottony tail
30 Pages
8381 Views
0 Downloads
835.32 KB
MATERIAL PROCESSES AND WORKSHOP TECHNOLOGY NOTES
Trending!
It’s essential to be aware of and able to foresee the dangers which exist in the workshop and are likely to affect your health and safety.
28 Pages
7787 Views
0 Downloads
520.53 KB
ACCOUNTING FOR MANAGERS NOTES
Trending!
Objectives: To impart knowledge and skills considered essential for managers to operate successfully in the dynamic world.
To imbibe the student with fundamental understanding of managerial accounting and how it assists an organization's management
team in the overall management process.
304 Pages
4333 Views
0 Downloads
2.66 MB
ADVANCED COMMUNICATION SKILLS NOTES
Trending!
English pronunciation can be tricky indeed but there are numerous ways to practice and numerous
resources to help guide you. Many of the resources are free, online, right at your fingertips and
specialize in those learning the language pronunciation for the first time with English as a
second language.
273 Pages
8198 Views
0 Downloads
4.45 MB
BUSINESS ENVIRONMENT NOTES
Trending!
Environment literally means the surroundings, external objects, influences or circumstances
under which someone or something exists. The environment of any organization is "the aggregate
of all conditions, events and influences that surround and affect it." Davis, K, The Challenge of
Business, (New York: McGraw Hill, 1975), p. 43.
304 Pages
4998 Views
0 Downloads
1.65 MB
CORPORATE AND BUSINESS LAWS NOTES
Trending!
‘Law’ means any rule of conduct, standard or pattern, to which actions are required to conform;
if not conformed, sanctions are imposed. When we speak of the law of a State, we use the term
‘law’ in a special and strict sense. In this sense, the term ‘law’ is defined in Oxford English
Dictionary as “the body of rules whether proceeding from formal enactment or from custom,
which a particular State or community recognises as binding on its subjects or members”. These
are rules which are recognised and acted on by courts of justice. Law may also be defined as rule
of conduct of persons (both natural and artificial), imposed upon and enforced among the
members of a given State.
355 Pages
6439 Views
0 Downloads
9.56 MB