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 | 1965 |
| 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.
DTP MANUAL
Trending!
This course contains detailed Desk Top Publishing Student Notes
3028 Views
0 Downloads
4.18 MB
HIV Diagnosis
Trending!
This course contains slides on HIV/AIDS diagnosis
2585 Views
0 Downloads
687.5 KB
AEN 213: GENDER AND COMMUNICATION
Trending!
Lates notes on gender and communication
17 Pages
2622 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
3029 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
3515 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
3163 Views
1 Downloads
1.62 MB
SUPPLIES MANAGEMENT
Supplies management is the identification, acquisition, access, positioning and management of resources the organization needs or potentially needs in the attainment of its strategic objectives.
386 Views
0 Downloads
493 KB
PURCHASING MANAGEMENT
Trending!
Purchase Management is a function of materials management in a company. Their basic
function is procuring the inputs for production function. This function encompasses
suppliers in the market external to the organization and several internal to the
organization
94 Pages
3496 Views
0 Downloads
2.15 MB