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 1523
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
HBC2122: COMPUTER APPLICATIONS IN BUSINESS Trending!
SECOND YEAR, SECOND SEMESTER EXAMINATION FOR THE DEGREE IN BACHELOR OF COMMERCE
5 Pages 3727 Views 5 Downloads 580.21 KB
EPSC 123: STATISTICS IN EDUCATION Trending!
UPDATED NOTES ON STATISTICS IN EDUCATION
38 Pages 5124 Views 12 Downloads 953.85 KB
HIST 211: THEMES IN WORLD HISTORY Trending!
UPDATED NOTES ON THEMES IN WORLD HISTORY
3856 Views 1 Downloads 218.21 KB
HRIM 243: HEALTH ADMINISTRATIVE STATISTICS Trending!
UPDATED NOTES ON HEALTH ADMINISTRATIVE STATISTICS
3575 Views 2 Downloads 21.4 KB
BIT 203: E-COMMERCE COURSE OUTLINE Trending!
SOUTH EASTERN KENYA UNIVERSITY E-COMMERCE COURSE OUTLINE
3674 Views 3 Downloads 52.1 KB
HRIMY1S2 HRIM123: FUNDAMENTALS OF DEMOGRAPHY Trending!
UPDATED NOTES ON FUNDAMENTALS OF DEMOGRAPHY
3201 Views 1 Downloads 24.82 KB
HRIM 231: HEALTH LAW AND ETHICS
UPDATED NOTES ON HEALTH LAW AND ETHICS
410 Views 0 Downloads 29.72 KB
HRIM227: INTRODUCTION TO HEALTH EDUCATION AND PROMOTION Trending!
UPDATED NOTES ON INTRODUCTION TO HEALTH EDUCATION AND PROMOTION
3712 Views 1 Downloads 429.5 KB
COMS 101 : COMMUNICATION SKILLS Trending!
UPDATED NOTES ON COMMUNICATION SKILLS CLASS NOTES
3223 Views 5 Downloads 594 KB
HRIM 142: Foundations of Health Services Management
Updated notes on Foundations of Health Services Management
70 Pages 768 Views 2 Downloads 1.15 MB