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 | 1634 |
| 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.
EDF 111: PHILOSOPHY OF EDUCATION
Trending!
Philosophy is the rational investigation of the truths and principles of being, knowledge or conduct. It is concerned with making explicit the nature and significance of ordinary and scientific beliefs. It is a system of thought or principles for guidance in practical affairs. It is the art of taking nothing for granted and questioning everything (what is good? Beauty? True? Justice? Courage? Democracy?) So philosophy bring to birth new ideas, new knowledge.
5234 Views
1 Downloads
66.89 KB
EDF 112: CHARACTER EDUCATION AND INTEGRITY NOTES
Trending!
Moral education refers to the general techniques and processes that are aimed at enabling the learner to evaluate scrutinize and make the right judgement and choices regarding values and value systems. The end result of this process is hoped to bring learners to act morally, that is in accordance with set values (goals). Moral education aims at arming the learner with the power of moral reasoning and the desire to act morally. Hence, it exhibits both the cognitive as well as attitudinal components. It involves the ability to make moral judgement based on sound reasoning as well as a process of educating feelings and emotions.
4668 Views
1 Downloads
57.95 KB
The Revised CPA Syllabus
Trending!
Download a copy of the revised syllabus for the Certified Public Accountants Examination.
52 Pages
3570 Views
2 Downloads
3.65 MB
K.C.S.E COMPUTER STUDIES SYLLABUS
Trending!
Get a copy of the the latest K.C.S.E COMPUTER STUDIES SYLLABUS.
23 Pages
5325 Views
4 Downloads
2.41 MB
AGRICULTURE BOOKLET
Trending!
This revision booklet is ideal for preparation for KCSE Examination. it contains series of topical questions and answers that makes revision even much easier! Get a copy today...
164 Pages
3280 Views
0 Downloads
1.88 MB
CBA 101: Business Law 1
Trending!
This unit aims at introducing you to the general principles of law and its application. in particular the unit discusses how this law relates to the business world.
129 Pages
2808 Views
0 Downloads
1.37 MB
ARE 400: Contemporary Trends in Christian Theology
Trending!
What is theology? Theology is the science of God. In its Christian sense it is the
science of the divinely revealed religious truths. Its theme is the being and nature of
God and God’s creatures and the whole complex of the divine dispensation from the
fall of Adam to the redemption through Christ and its mediation of people by His
church including the so-called natural truths of God, the soul, the moral law, which
are accessible to mere reason.
70 Pages
2579 Views
2 Downloads
634.44 KB
Ratio Analysis Notes For Financial Accounting
Trending!
Ratio analysis is among the most popular and widely used tools of financial analysis. A ratio expresses a mathematical relation between two quantities. While computation of a ratio is easy, its interpretation is more complex.
3730 Views
0 Downloads
35.48 KB
HControl Systems
Trending!
Updated notes on HControl Systems
494 Pages
2846 Views
0 Downloads
15.58 MB
EAB 2221: Building services and Maintenance1
Trending!
UPDATED NOTES ON BUILDING SERVICES AND MAINTENANCE
2883 Views
1 Downloads
7.67 MB