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 | 1541 |
| 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.
GEOGRAPHY NOTES FORM 1-4 BOOKLET
Trending!
The booklet contains all the notes from form one to form four,as laid out in the Geography syllabus.
6643 Views
6 Downloads
1.58 MB
GEOGRAPHY PAPER 2 REVISION NOTES
Trending!
The booklet contains notes on Geography Paper 2 Topics. It also has a series of questions and answers for areas covered in PP2.
66 Pages
7105 Views
17 Downloads
762.86 KB
TOP STUDENT REVISION GEOGRAPHY PAPER 2
Trending!
The booklet contains a collection of PP2 questions and answers,it a great revision material for candidates. Grab a copy!
64 Pages
3952 Views
3 Downloads
657.53 KB
GEOGRAPHY REVISION NOTES FOR PAPER 1
Recommended!
Trending!
The booklet contains questions and answers on topics tested in Geography Paper 1
33 Pages
7380 Views
31 Downloads
569.36 KB
HRIM141: INTRODUCTION TO MEDICAL STATISTICS
Trending!
UPDATED NOTES ON INTRODUCTION TO MEDICAL STATISTICS
90 Pages
4125 Views
1 Downloads
1.28 MB
Principles of Risk Management & Insurance
Updated notes on Principles of Risk Management & Insurance
138 Pages
342 Views
1 Downloads
2.52 MB
ARE 351: OLD TESTAMENT HERMENEUTICS
Trending!
This course which consists of six major study units which examines hermeneutics as a
tool for the study of the Old Testament including the science of hermeneutics, concepts and elements of hermeneutics, features and problems associated with the study of the Old Testament using various hermeneutical approaches
29 Pages
4322 Views
0 Downloads
1.06 MB
TIPS TO EXCELLING IN BIOLOGY
Trending!
The booklet highlights the Main reasons why Students Perform Poorly in the Biology Subject and tips to excel in the subject.
4 Pages
3691 Views
0 Downloads
144.53 KB
BIOLOGY ESSAY QUESTIONS EXPECTED ANSWERS
Trending!
The booklet explores a wide range of possible biology essays and the expected responses. it also helps students sharpen their skills in handling essay questions.
31 Pages
5211 Views
3 Downloads
379.39 KB