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 | 4820 |
| 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 C.R.E PP1 & PP2 QUESTIONS & ANSWERS
Trending!
Download a copy of KCSE 2022 C.R.E PP1 & PP2 QUESTIONS with comprehensive KNEC Marking Schemes, This is instrumental in aiding your revision for your fourth coming examinations.
17 Pages
9505 Views
1 Downloads
7.14 MB
The Samaritan excerpts and answers
Recommended!
Trending!
Get The Samaritan excerpts questions and answers.
43 Pages
23819 Views
93 Downloads
8.68 MB
SOMO LA KWANZA
Trending!
Tamthilia ni utanzu mmoja kati ya tanzu nne kuu za fasihi andishi yaani Riwaya,
Hadithi fupi, Tamthilia na Ushairi. Tamthilia hutegemea mazungumzo na uigizaji ili kuwasilisha ujumbe wake. Katika somo hili, dhana za kimsingi kama vile sanaa za maonyesho, drama na tamthilia zinafasiliwa. Tunaainisha tamthilia katika makundi mbali mbali na hatimaye kueleza nafasi ya tamthilia katika jamii.
9 Pages
6102 Views
1 Downloads
100.43 KB
BEM 2101: CURRICULUM DEVELOPMENT NOTES
Trending!
Curriculum is a plan of Education. This plan transforms ideas into curriculum which is related to life, needs aspirations and problems of people. In this manner, the curriculum becomes a powerful and dynamic instrument of social, economic and cultural transformation of the society.
142 Pages
4496 Views
1 Downloads
1.25 MB
ECT 202: INSTRUCTIONAL METHODS FULL NOTES
Trending!
This module aims at giving you a good perspective of what teaching means and how to effectively perform the teaching task. The module tackles each related topic in teacher education in a systematic and logically sequenced order. Its focus is to make the teacher effective in disseminating information, skills, values and attitudes to his learners.
181 Pages
7874 Views
4 Downloads
1.53 MB
CLERICAL DUTIES KNEC NOTES
Trending!
It refers to mechanisms that controls and coordinate the behaviour of members in an organization in order to achieve the goals in an organization. It also refers to the distribution of tasks and responsibilities within an organization. It serves to indicate who is responsible to whom and for what at any level.
103 Pages
9881 Views
9 Downloads
785.93 KB
KCSE 2024 PREDICTION EXAMS; Chemistry PP1,PP2,PP3 Q&A
Trending!
Download a copy of the KCSE 2024 PREDICTION EXAMS; Chemistry PP1,PP2 & PP3 Question Papers with well coordinated Marking Schemes attached. This is a good revision material for your upcoming exams. Grab a copy and revise extensively!
48 Pages
10341 Views
1 Downloads
983.2 KB
EMP 201: CURRICULUM DEVELOPEMNT COMPLETE NOTES
Trending!
Curriculum is a plan of Education. This plan transforms ideas into curriculum which is
related to life, needs, aspirations and problems of people. In this manner, the curriculum
becomes a powerful and dynamic instrument of social, economic and cultural
transformation of the society.
90 Pages
6566 Views
1 Downloads
468.89 KB
APP 802: PUBLIC ADMINISTRATION
Trending!
This module deals with the Public Administration. I am very certain that public administration is no longer a new term to you. This module will delve into topics that build up public administration ideologies and also so applicable in real life experience especially in our various line of duties. In addition it’s an interactive instructional module that uses both action and collaborative learning styles that provide you with diverse online learning experiences and effective learning processes.
334 Pages
5700 Views
4 Downloads
9.94 MB
CEKENAS JUL/AUG MOCK 2024; Agriculture PP1 & PP2 Q&A
Trending!
Download a copy of the CEKENAS JUL/AUG MOCK 2024; Agriculture PP1 & PP2 Question Papers with well coordinated Marking Schemes attached. This is good revision material for your upcoming exams.
40 Pages
9075 Views
0 Downloads
1.66 MB