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 | 6313 |
| 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.
AMT 417: TOOLS OF PUBLIC RELATIONS
Trending!
Public Relations is all about communicating effectively with the publics. But how is this
managed? This is done with the help of different channels of communication.
8058 Views
1 Downloads
126 KB
Desktop Publishing Basic Designs
Trending!
Detailed notes on desktop publishing
7629 Views
0 Downloads
1.53 MB
Gendered Media
Trending!
This course contains notes on the Influence of Media
on Views of Gender
11 Pages
7009 Views
0 Downloads
4.35 MB
DTP MANUAL
Trending!
This course contains detailed Desk Top Publishing Student Notes
8201 Views
0 Downloads
4.18 MB
HIV Diagnosis
Trending!
This course contains slides on HIV/AIDS diagnosis
7884 Views
0 Downloads
687.5 KB
AEN 213: GENDER AND COMMUNICATION
Trending!
Lates notes on gender and communication
17 Pages
7183 Views
1 Downloads
1.05 MB
UCI203: COMPUTING AND INFORMATION TECHNOLOGY
Trending!
Detaied notes on desktop publishing technologies for computing and information technology
40 Pages
8579 Views
0 Downloads
12.11 MB
INTRODUCTION TO ENGLISH MORPHOLOGY
Trending!
This course contains the basics of English Linguistic Morphology like The Scope of Linguistic Morphology, The Different Components of a Word, Morphological Categories
and Inflectional & Derivational Processes
105 Pages
8920 Views
0 Downloads
1.56 MB
INTRODUCTION TO CREATIVE DESIGN AND DESKTOP PUBLISHING
Trending!
This module contains detailed slide notes on introduction to creative design and desktop publishing
33 Pages
8859 Views
1 Downloads
1.62 MB