INTRODUCTION TO C++ PROGRAMMING YEAR 1

Institution UNIVERSITY
Course BACHELOR OF SCIENCE...
Year 1st Year
Semester Unknown
Posted By stephen oyake rabilo
File Type pdf
Pages 33 Pages
File Size 207.62 KB
Views 1493
Downloads 0
Price: Buy Now whatsapp Buy via whatsapp
  • whatsapp
  • facebook
  • twitter

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.

No preview available
ENG SCHEMES OF WORK STD 5 TERM 1 Trending!
UPDATED ENGLISH SCHEMES OF WORK STD 5 TERM 1
10 Pages 3461 Views 0 Downloads 954.11 KB
ENG SCHEMES OF WORK STD 5 TERM 2 Trending!
UPDATED ENGLISH SCHEMES OF WORK STD 5 TERM 1
9 Pages 3542 Views 0 Downloads 559.69 KB
AHT 101: PRINCIPLES OF ARCHAEOLOGY
UPDATED NOTES ON PRINCIPLES OF ARCHAEOLGY
42 Pages 835 Views 0 Downloads 509.92 KB
AHT200 HISTORY OF KENYA Trending!
UPDATED NOTES ON HISTORY OF KENYA
45 Pages 3531 Views 0 Downloads 459.58 KB
AHT 202 EARLY AFRICAN ARCHAEOLOGY Trending!
UPDATED NOTES ON EARLY AFRICAN ARCHAEOLOGY
32 Pages 3980 Views 0 Downloads 125.11 KB
BHT315 SERVICE PRACTICAL TESTS Trending!
PAST SERVICE PRACTICAL TESTS
6 Pages 3772 Views 2 Downloads 212.6 KB
NGE308 RESEARCH METHODOLOGY Trending!
UPDATED NOTES ON RESEARCH METHODOLOGY
418 Pages 2860 Views 1 Downloads 1.91 MB
BUD001 HIV/AIDS
LATEST NOTES ON HIV/AIDS
201 Views 0 Downloads 130.12 KB
DPL101 PRINCIPLES OF MANAGEMENT Trending!
UPDATED NOTES ON PRINCIPLES OF MANAGEMENT
6 Pages 3693 Views 0 Downloads 146.33 KB
DPL101 PRINCIPLES OF PROCUREMENT AND LOGISTICS Trending!
LATEST NOTES ON PRINCIPLES OF PROCUREMENT AND LOGISTICS
7 Pages 3304 Views 1 Downloads 40.8 KB