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 | 6230 |
| 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.
BCM107: CONTRACT LAW
Trending!
THIS COURSE ENTAILS NOTES ON BUSINESS OF CONSTRUCTION AND CONTRACT BASICS (REGULATORY/LICENSING REQUIREMENTS)
19 Pages
11556 Views
0 Downloads
839.77 KB
DRAINAGE CONSTRUCTION METHODS
Trending!
UPDATED NOTES ON DRAINAGE CONSTRUCTION METHODS
8 Pages
9829 Views
0 Downloads
5.93 MB
ECT300: EDUCATIONAL TECHNOLOGY
Trending!
This course discusses the process of nature of communication and its effects in learning
114 Pages
12440 Views
3 Downloads
1.46 MB
ISC 404: DIGITAL LIBRARIES
Trending!
This course contains concept definitions. Overview of digital libraries. Components and Characteristics of digital libraries:Impact. Digital collections: types and formats. Issues in the development of digital libraries.
28 Pages
10416 Views
1 Downloads
539.49 KB
Introduction to Law
Trending!
This course contains the basic concepts of law
25 Pages
2817 Views
2 Downloads
327.19 KB
EET 201: MACROECONOMIC THEORY II
Trending!
UPDATED NOTES ON MACROECONOMIC THEORY II
100 Pages
2280 Views
1 Downloads
1.48 MB
COMPUTER STUDIES PAPER 1 REVISION BOOKLET
Trending!
REVISION COMPUTER STUDIES PAPER 1,10 Sample Papers + Answers
13226 Views
0 Downloads
544.15 KB
COMPUTER STUDIES COMPREHENSIVE NOTES
Trending!
A computer is an electronic device that accepts data, as input and transforms it under the influence of a set of special instructions called programs, to produce the desired output (referred to as information)
11106 Views
1 Downloads
1.79 MB
EAC 2251: STRUCTURES 2
Trending!
UPDATED NOTES ON MECHANICAL VENTILATION AND AIR CONDITIONING ENGINEERING
No pages found
9806 Views
1 Downloads
189.38 KB
BBM 223: INTRODUCTION TO BUSINESS STATISTICS
Trending!
This course introduces students to business statistics necessary for data summarization and presentation. It contains data collection; Organization and Presentation of Data; Random variables: Discrete and continuous random variables, Their distribution such as binomial, Poisson, normal, and their business applications
221 Pages
11409 Views
0 Downloads
1013.16 KB