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 | 6363 |
| 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.
SBT 100 & SBT 114 CELLULAR BASIS OF LIFE
Trending!
Summary of concepts in cellular basis of life
45 Pages
6861 Views
4 Downloads
2.12 MB
WORKSHOP ORGANIZATION MANAGEMENT
Trending!
MANAGEMENT is the process of getting things done through the efforts of other people in order to achieve the predetermined objectives of organization.
59 Pages
8531 Views
0 Downloads
695.31 KB
MICRO-ELECTRONICS
Trending!
A computer is defined as a machine that is capable of taking in raw data (input) and processing it into more meaningful output (information) under definite instructions (programs) and stores the results for future use.
88 Pages
9119 Views
0 Downloads
3.32 MB
ENTO 121 FUNDAMENTALS OF ENTOMOLOGY
Trending!
Comprehensive notes on fundamentals of entomology.
183 Pages
9477 Views
0 Downloads
1.84 MB
BUILDING SERVICES & PROTECTION NOTES
Trending!
A building is a structure that has a roof and walls and stands permanently in one place. The primary function of buildings is to provide shelter to its occupants.
56 Pages
9857 Views
0 Downloads
3.72 MB
POWER SYSTEM
A protective relay is a device that detects the fault and initiates the operation of the circuit breaker to isolate the defective element from the rest of the system.
126 Pages
1969 Views
0 Downloads
5.54 MB
POWER GENERATION AND TRANSMISSION
Trending!
Energy exists in different forms in nature but the most important form is the electrical energy. The conversion of energy available in different forms in nature into electrical energy is known as generation of electrical energy.
100 Pages
8604 Views
0 Downloads
4.81 MB
MACHINE UTILIZATION
Trending!
A stator consist of the steel frame that encloses a hollow cylindrical core made up of thin laminations of silicon steel to reduce hysteresis and eddy current losses.
124 Pages
9451 Views
1 Downloads
5.78 MB
ELECTRICAL CIRCUIT ANALYSIS
Trending!
A circuit diagram can be analyzed by breaking down the schematics of a circuit, simplifying the resistors into one, and applying fundamental laws of physics. There are three main circuit analysis techniques: the fundamental laws, using the node voltage method or the mesh current method.
83 Pages
9474 Views
0 Downloads
4.43 MB
DIGITAL ELECTRONICS
Digital electronics Digital electronics is a field of electronics involving the study of digital signals and the engineering of devices that use or produce them. This is in contrast to analog electronics which work primarily with analog signals.
102 Pages
1558 Views
0 Downloads
4.56 MB