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 | 5081 |
| 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.
REVISED AND SUMMARISED STRUCTURE OF THE KASNEB QUALIFICATIONS UNDER THE APPROVED COMPETENCE FRAMEWORK
Trending!
The overall structure of KASNEB qualifications and the structure of each qualification represented below.
8 Pages
8974 Views
0 Downloads
401.53 KB
Life Skills Education GRADE 8 Curriculum Design
Trending!
Download a copy of Life Skills Education GRADE 8 Curriculum Design.The notes are precise, complete and comprehensive. This will serve you well!
146 Pages
8774 Views
2 Downloads
1.72 MB
MFU 2226/FCU102; MEDIA ETHICS NOTES
Trending!
The purpose of this course is to expose the student to the ethical principles in the media and examine rival theories of ethics that they
will apply them to real media controversies and dilemma
235 Pages
6722 Views
0 Downloads
595.4 KB
Visual Arts Grade 8 Curriculum Design
Trending!
Download a copy of Visual Arts Grade 8 Curriculum DesignThe notes are precise, complete and comprehensive. This will serve you well!
142 Pages
8751 Views
0 Downloads
1.67 MB
PRE TECHNICAL GRADE 8 Curriculum DESIGN
Trending!
Download a copy of PRE TECHNICAL GRADE 8 Curriculum DESIGN. The notes are precise, complete and comprehensive. This will serve you well!
65 Pages
8981 Views
0 Downloads
1.18 MB
PP1 REPORT CARD
This is a PP1 report card to be used in recording pupils termly exams and assessments.
35 Pages
491 Views
3 Downloads
349.82 KB
DIPLOMA IN ICT MODULE 1 QUESTIONS AND ANSWERS
Trending!
QUESTIONS AND ANSWERS IN DIPLOMA IN ICT MODULE 1
13 Pages
11755 Views
6 Downloads
287.18 KB
Human Resource Management- Types of Employee Separation Notes
Trending!
Voluntary separation occurs when an employee voluntarily quits, resigns, abandons a job or retires. When this happens there several steps to be followed:
5 Pages
8300 Views
0 Downloads
346.74 KB
Human Resource Management- Reward Management Notes
Trending!
Reward Management is concerned with the formulation and implementation of strategies and policies, the purposes, which are to reward people fairly, equitably and consistently in accordance with their value to the organization.
16 Pages
8488 Views
3 Downloads
293.99 KB
INTERNATIONAL PURCHASING NOTES
International purchasing is buying outside the firms’ country of manufacture. There are other names used to refer to international purchasing such as...
29 Pages
430 Views
1 Downloads
490.17 KB