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 | 2034 |
| 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.
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
2517 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
3779 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
3736 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
325 Views
2 Downloads
349.82 KB
DIPLOMA IN ICT MODULE 1 QUESTIONS AND ANSWERS
Trending!
QUESTIONS AND ANSWERS IN DIPLOMA IN ICT MODULE 1
13 Pages
3589 Views
4 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
3925 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
3876 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
294 Views
1 Downloads
490.17 KB
kmtc antepartum hemorrhage notes
Trending!
Definition: Any bleeding after 28weeks gestation and before 2nd stage of delivery
Incidence - 3-4%
6 Pages
3074 Views
0 Downloads
426.39 KB
Kmtc anaemia in pregnancy notes
Trending!
Anemia in pregnancy is defined as hemoglobin concentration < 10 g/dL during
pregnancy or the puerperium.
5 Pages
3454 Views
0 Downloads
322.58 KB