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 | 2020 |
| 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.
CRE Paper 1 Topical Notes 2022
Trending!
Point by point CRE paper 1 notes
3776 Views
2 Downloads
103.85 KB
STD 8 HOLIDAY ASSIGNMENT
Trending!
This document contains assignments covering all the subject areas i.e English,Kiswahili,Maths,CRE,Social Studies & Science. Its a productive resource that is able to keep your child busy during this prolonged holiday period. Download it today!
22 Pages
3150 Views
0 Downloads
355.17 KB
Topical Questions CRE Form 1 To 4 2022
All Topical Questions Available CRE Form 1-4
40 Pages
955 Views
1 Downloads
884.78 KB
Topical Questions CRE Form 1 To 4 2022
All Topical Questions Available CRE Form 1-4
40 Pages
1012 Views
0 Downloads
884.78 KB
Topical Questions CRE Form 1 To 4 2022
All Topical Questions Available CRE Form 1-4
40 Pages
1082 Views
0 Downloads
884.78 KB
BUSINESS AND SOCIAL STUDIES
Trending!
Communication is an act of any natural or artificial means of conveying information or giving instructions. Its the process of passing information and understanding from one person to another
No pages found
2167 Views
0 Downloads
6.33 MB
DATA COMMUNICATION AND NETWORKING
Networking is the concept of sharing resources and services. a network of computers is a group of interconnected systems shaing resources and interacting using a shared communication skilss.
No pages found
1490 Views
0 Downloads
1.74 MB
MANAGEMENT
Trending!
Management is defined as a process of overseeing and coordinating resources efficiently and effectively in line with the goals of the organisation. Effectiveness is the attainment of goals that enables the realisation of the objectives of an organisation or, briefly, as doing the right thing whereas efficiency is the performing of a job using minimum effort, cost and wastage or simply put as doing things right. The end result of an efficient and effective management is the success of an organisation.
55 Pages
2460 Views
0 Downloads
939.22 KB
DATA AND COMPUTER SECURITY
Trending!
Data and information must be protected against unauthorised access, modification or damage. this is because it is a scarce and valuable resource for any business organisation
No pages found
3533 Views
0 Downloads
1.47 MB
Chemistry Form 1 notes 2022
Trending!
Up to date notes form 1 2022.
Point by point
117 Pages
4101 Views
0 Downloads
2.43 MB