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 | 1641 |
| 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.
Desktop Publishing Intro
Trending!
UPDATED NOTES ON DESKTOP PUBLISHING
12 Pages
2773 Views
0 Downloads
209.68 KB
HIV TRANSMISSION RISK
Trending!
UPDATED NOTES ON HIV TRANSMISSION
RISK
43 Pages
2736 Views
0 Downloads
1.12 MB
POETRY NOTES
This course contains simplified notes on poetry from form1-4
72 Pages
319 Views
1 Downloads
214.6 KB
SKELETAL SYSTEM
This course contains the components of the skeleton system and their functions
51 Pages
1056 Views
0 Downloads
1.02 MB
CIM 211 : EDUCATIONAL MEDIA AND RESOURCES
Trending!
This course highlights the communicationprocess, introduces the range of media resources for teaching and states the varieties of community learning resources
45 Pages
3056 Views
2 Downloads
732.58 KB
AEN 104:ART OF WRITING
Trending!
This course states what differentiates a cohesive grammatical
unit from a random collection of sentences
26 Pages
3653 Views
8 Downloads
1.22 MB
Introduction to Pagemaker
Trending!
Adobe PageMaker 6.5 is the “world’s leading cross- platform professional page
layout software”. PageMaker is primarily used for designing and producing publication that requires a combination of text and graphics.
312 Pages
3320 Views
0 Downloads
7.35 MB
Physiology of Muscle Tissue
Trending!
This course contains updated notes on muscular system functions
3135 Views
0 Downloads
14.62 MB
SMA 330: NUMERICAL ANALYSIS I
Trending!
The purpose of this module is to introduce the learners to various numerical methods
such as interpolation, error analysis, differentiation, integration and iteration.
97 Pages
3536 Views
3 Downloads
2.76 MB