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 | 6361 |
| 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.
ELECTRONICS NOTES
Trending!
Electronics is a scientific and engineering discipline that studies and applies the principles of physics to design, create, and operate devices that manipulate electrons and other electrically charged particles.
47 Pages
2122 Views
0 Downloads
2.56 MB
Principles of electrical machines
Trending!
An electric generator is a machine that converts mechanical energy into electrical energy. An electric generator is based on the principle that whenever flux is cut by a conductor, an e.m.f. is induced which will cause a current to flow if the conductor circuit is closed. The direction of induced e.m.f. (and hence current) is given by Fleming’s right hand rule.
317 Pages
9660 Views
0 Downloads
13.12 MB
HE/CU/TT/CC/05/6/A: APPLICATION OF MEDICAL–LEGAL ETHICS
Trending!
This unit specifies the competencies required to apply medical legal ethics in PERIOPERATION THEATRE TECHNOLOGY. It involves acquiring knowledge on the medical-legal and ethical issues, applying medical-legal ethics, and liaising with law enforcement team. It also involves documenting medical legal & ethical issues in PERIOPERATION THEATRE TECHNOLOGY.
26 Pages
2672 Views
6 Downloads
838.35 KB
SZL 2350 VIRAL GENETICS
Trending!
Complete lecture notes on viruses under viral genetics.
11 Pages
6172 Views
0 Downloads
179.71 KB
Nosocomial infection
Helps a student understand the infection occurring in a patient
30 Pages
1234 Views
0 Downloads
797.15 KB
Introduction to Geographical Information systems
Trending!
Designed to provide the country with high level power in geospatial information science
58 Pages
6186 Views
1 Downloads
317.48 KB
GRADE 5 TERM 3 SCIENCE SCHEMES OF WORK
Trending!
Enhance term 3 of Grade 5 Science & Technology with the Super Minds Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
11 Pages
8931 Views
3 Downloads
540.08 KB
GRADE 5 SUPER MIND SOCIAL STUDIES SCHEMES OF WORK TERM 3
Trending!
Enhance term 3 of Grade 5 SOCIAL STUDIES with the Super Minds Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
10 Pages
9765 Views
5 Downloads
439.69 KB
GRADE 5 TERM 3 SOCIAL STUDIES RECORDS OF WORK
Trending!
Enhance term 3 of SOCIAL STUDIES with the Super Minds SOCIAL STUDIES RECORDS OF WORK. Perfect for teachers seeking comprehensive curriculum guidance.
10 Pages
10464 Views
0 Downloads
134.06 KB
GRADE 5 TERM 3 PHYSICAL HEALTH EDUCATION SCHEMES OF WORK
Trending!
Enhance term 3 of PHYSICAL HEALTH EDUCATION with the Super Minds Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
17 Pages
10139 Views
0 Downloads
711.09 KB