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 | 6364 |
| 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.
MASENO SCHOOL MATH QUESTIONS - Trigonometry 2
Trending!
MASENO SCHOOL MATH QUESTIONS - Trigonometry 2
2 Pages
10495 Views
4 Downloads
433.2 KB
MASENO SCHOOL MATH QUESTIONS - Vectors 2
Trending!
MASENO SCHOOL MATH QUESTIONS - Vectors 2
6 Pages
9602 Views
6 Downloads
895.81 KB
STA 2101: ALGEBRA FOR STATISTICS AND FINANCE
Trending!
By the end of this course, the student will have a good understanding of algebraic notations, and gained knowledge on how to reason symbolically. Emphasis will be
placed on the study of functions, and their graphs, inequalities, and linear, quadratic, piece-wise defined, rational, polynomial, exponential, and logarithmic functions.
124 Pages
9737 Views
0 Downloads
3.91 MB
STA 2200: PROBABILITY AND STATISTICS II
Trending!
At the end of the course the student should be able to handle problems involving probability distributions of a discrete or a continuous random variable.
52 Pages
10658 Views
3 Downloads
1.86 MB
STA 2260: STATISTICS
Trending!
The Word statistics has been derived from Latin word “Status” or the Italian word “Statista”, the meaning of these words is “Political State” or a Government. Early applications of statistical thinking revolved around the needs of states to base policy on demographic and economic data.
90 Pages
9610 Views
0 Downloads
3.09 MB
AED 102: AGRICULTURAL EDUCATION COMMUNICATION SKILLS
Trending!
Authoritarian Theory; Under theory, freedom of thought is jealously guarded by a few people (ruling classes), who are concerned with the emergence of a new middle class. This class are worried about the effects of printed matter on their thought process and therefore, steps are taken to control the freedom of expression. This has resulted in advocacy of complete dictatorship.
8 Pages
9676 Views
0 Downloads
242.27 KB
HORT 317: VEGETABLE PRODUCTION AND MANAGEMENT
Trending!
Horticulture is the branch of agriculture which deals with garden crops i.e. fruits, vegetables and ornamental plants.The world horticulture is derived from the Latin word Hortus means garden and colere means to cultivate. There are main three branches of Horticulture Pomology, Olericulture, and Floriculture.
59 Pages
9196 Views
1 Downloads
1.24 MB
CONSUMER AND BUYER BEHAVIOUR
Trending!
In marketing, it is generally believed and conceptualized that customer is the ‘King.’
Practically, every business entity exists to offer goods and or services to the market either for profit or non-profit motive. In any case, such entity must identify and define the target market (those it wants to serve), understand the components, characteristics and unique nature of the market.
11 Pages
7388 Views
0 Downloads
74.93 KB
EMA 411: EDUCATIONAL MANAGEMENT & ADMINISTRATION NOTES
Trending!
Management: Management is a term most often used to describe industrial activities. Management is a social process which is designed to ensure the cooperation, participation, intervention and involvement of others in the effective achievement of a given or pre-determined goal or objective.
37 Pages
11836 Views
1 Downloads
1.31 MB
EDUCATION AND SOCIAL STARTIFICATION
Trending!
Social stratification is a particular form of social inequality. It refers to the presence of social groups which are ranked one above the other, usually in terms of the amount of power, prestige and wealth their members possess. Those who belong to a particular group or stratum will have some awareness of common interest and common identity.
22 Pages
7946 Views
0 Downloads
713.11 KB