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 1525
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
ESSAYS BASED ON SET TEXTS Trending!
UPDATED ESSAYS BASED ON SET TEXTS
42 Pages 3235 Views 0 Downloads 742.76 KB
ORGANIC CHEMISTRY
UPDATED NOTES ON ORGANIC CHEMISTRY
34 Pages 1386 Views 0 Downloads 2.17 MB
MEDICAL TERMINOLOGIES
UPDATED NOTES ON MEDICAL TERMINOLOGIES
1774 Views 1 Downloads 1.89 MB
EAPE 417: EDUCATIONAL ADMINISTRATION AND MANAGEMENT Trending!
UPDATED NOTES ON EDUCATIONAL ADMINISTRATION AND DEVELOPMENT
3920 Views 1 Downloads 174 KB
COSC103: Introduction to Computers application Trending!
Updated notes on Introduction to Computers application
3466 Views 0 Downloads 466.5 KB
EAPE 421: ECONOMICS AND PLANNING OF EDUCATION
UPDATED NOTES ON ECONOMICS AND PLANNING OF EDUCATION
8 Pages 1163 Views 0 Downloads 611.76 KB
ECOLOGY AND ECOLOGICAL PROCESSES Trending!
UPDATED NOTES ON ECOLOGY AND ECOLOGICAL PROCESSES
11 Pages 3394 Views 0 Downloads 1.05 MB
Water Abstraction Trending!
Updated notes on Water Abstraction
10 Pages 3279 Views 0 Downloads 1.24 MB
DEMOGRAPHY
UPDATED NOTES ON DEMOGRAPHY
74 Pages 340 Views 1 Downloads 1.19 MB
AHT418: Selected Themes In East African History Trending!
UPDATED NOTES ON SELECTED THEMES ON AFRICAN HISTORY
85 Pages 3942 Views 0 Downloads 1.12 MB