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 | 2046 |
| 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.
Management of malnutrition
The term malnutrition generally refers both to undernutrition and overnutrition, but in this guide we use the term to refer solely to a deficiency of nutrition
85 Pages
392 Views
0 Downloads
2.15 MB
Simplified English Poetry Notes study guidebook Form 1-4
Recommended!
Trending!
Poetry is the spontaneous overflow of powerful feelings of poet expressed using
expertly selected words in their best form and order. We defined poetry as "a
spontaneous overflow of powerful feelings", because poetry, unlike other literary
work, is brought about by feelings that compel the poet to compose a poem about a
topic, a phenomenon or situation.
51 Pages
6782 Views
35 Downloads
816.33 KB
English functional writing Notes
Trending!
This document explores through the intricacies of functional writing with writing tips and relevant examples of each genre. Recommended for teaching and revision
85 Pages
4545 Views
4 Downloads
1.9 MB
Business Studies Notes Grade 7
Trending!
Business means an activity that is carried out by an individual or an organization to provide goods and services with an aim of making profit. Business studies is the study of activities that involve production, distribution and
consumption of goods and services.
81 Pages
3339 Views
1 Downloads
1.82 MB
Mathematics Notes F1
By the end of the topic the learner should be able to:
a.)Identify,read and write natural numbers in symbols and words;
b.)Round off numbers to the nearest tens, hundreds,thousands,millions and billions;
c.)Classify natural numbers
d.)Solve word problems natural numbers.
157 Pages
577 Views
0 Downloads
4.81 MB
History Notes F1
Trending!
History is the study of the past events and developments of man or History is the study of Man’s past chronological account and record of events in relation to his environment.
355 Pages
3568 Views
0 Downloads
2.34 MB
KCSE BIOLOGY PAPER 1 Q&A 2021
Trending!
the purpose of this biology Question and Answer is to help the student in revising for his or her final KCSE Exams
11 Pages
3787 Views
0 Downloads
1.83 MB
KCSE PHYSICS PAPER 1 YEAR 2021
Trending!
the purpose of this physics revision Q&A plus Marking Scheme is to help the student to prepare for his or her final KCSE Physics exam paper
No pages found
4711 Views
1 Downloads
4.55 MB
KCSE PHYSICS PAPER 2 YEAR 2021
Trending!
The purpose of this Physics KCSE past paper revision Questions is to help the student to prepare for his or her final Physics exams.
No pages found
3960 Views
0 Downloads
5.08 MB