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 | 1977 |
| 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.
KCSE 2022 ENGLISH PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2022 ENGLISH PP1,PP2,PP3 QUESTIONS & ANSWERS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
9 Pages
5293 Views
0 Downloads
3.18 MB
KCSE 2022 KISWAHILI PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2022 KISWAHILI PP1,PP2,PP3 QUESTIONS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
12 Pages
6490 Views
7 Downloads
4.48 MB
KCSE 2023 BIOLOGY PP1,PP2,PP3 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2023 BIOLOGY PP1,PP2,PP3 QUESTIONS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
26 Pages
7700 Views
9 Downloads
2.81 MB
KCSE PHYSICS TOPICAL REVISION BOOKLET
Trending!
Download a copy of KCSE PHYSICS TOPICAL REVISION BOOKLET, This resource will help you in revision and preparation for your fourth coming examination. Get a copy!
213 Pages
4405 Views
2 Downloads
12.39 MB
GRADE 7 CREATIVE ARTS AND SPORTS TERM 1 LESSON NOTES
Trending!
Creative Arts is a description of various artistic activities that allow performers to use their
imaginations, creativity, and express ideas through a variety of mediums to passage a
message to the audience.
33 Pages
6913 Views
11 Downloads
1.65 MB
UTEUZI WA CHALE Setbook Guide
Trending!
Uteuzi ni neno linalotokana na neno teua yaani chagua.Chale ni mhusika katika novela
hii.Uteuzi wa Chale ni uamuzi ambao mhusika chale alipaswa kuchukua katika
kuchagua kipawa kipi angetumia ili kuitumikia jamii.
32 Pages
5573 Views
13 Downloads
899.56 KB
MWONGOZO WA WEMA HAUOZI GREDI 8
Recommended!
Trending!
Tamthilia ni utungo wa fasihi andishi ambao hutungwa ili kuwasilishwa jukwaani kwenye hadhira. Matukio katika tamthilia hudhamiriwa kuonekana na kusikika au kuigizwa jukwaani, si kusomwa tu.
17 Pages
7826 Views
22 Downloads
994.35 KB
MWONGOZO WA MSHALE WA MATUMAINI GRADE 7
Recommended!
Trending!
Zingo na mamake Zahara wanakimbilia ughaibuni Gera katika Jamhuri ya Demokrasia ya Tereka kufuatia mzozo wa kikabila kati ya Walanga na Wareba katika nchi yao ya Doneka.Huko ughaibuni wanakabiliana na matatizo mengi.
25 Pages
10317 Views
75 Downloads
738.05 KB
GRADE 7 RATIONALIZED PRE-TECHNICAL STUDIES NOTES
Trending!
Pre-technical studies is a series of learning areas written to provide practical experiences that support the acquisition of skills in technical areas derived from computer science and business studies.
54 Pages
5074 Views
5 Downloads
1.91 MB
CBM 1201: PRINCIPLES OF MANAGEMENT CAT
Trending!
The aim of this assessment is to help the students to be able to answer questions pertaining principles of management
3312 Views
0 Downloads
13.95 KB