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 | 1593 |
| 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.
PSY 211: GUIDANCE AND COUNSELLING
Trending!
Guidance means of helping individuals to understand and use wisely the educational, vocational and personal opportunities they have as a form of systematic assistance in achieving satisfactory adjustment to school and to life in general.
3079 Views
1 Downloads
608.55 KB
Ethics for IT Workers and IT Users
Trending!
Ethics in Information Technology, Fourth Edition
2689 Views
0 Downloads
710 KB
Computer Legal and Ethical Issues
Trending!
The focus is on technical approaches to the detection, prevention, and recovery from
computer and network attacks. One other tool is the deterrent factor of law enforcement. Many types of computer attacks can be considered crimes and, as such, carry criminal sanctions. This section begins with a classification of types of computer crime and then looks at some of the unique law-enforcement challenges of dealing with computer crime.
2933 Views
0 Downloads
113.27 KB
Law of Agency
Trending!
It is a general principle of contract law that only the parties to the contract acquire rights and liabilities under it. A well recognized exception to this general rule is the concept of agency.
12 Pages
3351 Views
1 Downloads
211.25 KB
PP1 TERM 3 SCHEMES OF WORK- ART
Trending!
UPDATED ARTS SCHEMES OF WORK TERM3 PP1
12 Pages
3798 Views
0 Downloads
837.93 KB
CRE SCHEMES OF WORK PP1 TERM3
Trending!
UPDATED CRE SCHEMES OF WORK PP1 TERM3
9 Pages
3343 Views
0 Downloads
868.76 KB
ENVIROMENTAL ACTIVITIES SCHEMES OF WORK PP1 TERM3
Trending!
UPDATED ENVIRONMENTAL ACTIVITIES SCHEMES OF WORK PP1 TERM3
18 Pages
3490 Views
0 Downloads
873.3 KB