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 1564
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
DEVELOPMENT OF LATERAL SURFACES OF SIMPLE AND SECTIONED SOLIDS Trending!
Updated notes on development of lateral surfaces of simple and sectioned solids
58 Pages 3881 Views 0 Downloads 1.29 MB
Physics transformer Trending!
Updated notes on Physics transformer
No pages found 4017 Views 0 Downloads 813.07 KB
EAC 2240: ERRORS AND ACCURACY Trending!
Updated notes on engineering surveying
8 Pages 3184 Views 0 Downloads 236.97 KB
Matters Cycling the Ecosystem Trending!
This course differentiates the different matter cycling the ecosystem
6 Pages 3033 Views 0 Downloads 850.52 KB
EDFO 418: COMPARATIVE EDUCATION Trending!
Updated notes on comparative education
48 Pages 4712 Views 0 Downloads 758.32 KB
Water Treatment Trending!
Updated notes on Water Treatment
14 Pages 3162 Views 0 Downloads 640.83 KB
EAPE 421: ECONOMICS AND PLANNING OF EDUCATION
Updated notes on economics and planning of education
7 Pages 1323 Views 0 Downloads 618.76 KB
COMPONENTS OF THE NATURAL ENVIRONMENT Trending!
This course consists of different types of natural environment, its components and features and interlinkages of the components of the natural environment.
8 Pages 3019 Views 0 Downloads 802.55 KB
Introdcution to computers Trending!
Detailed notes on intoduction to computers
47 Pages 3845 Views 0 Downloads 1.27 MB
Crystal Structures Material Science I Trending!
Updated notes on Crystal Structures Material Science I
26 Pages 3921 Views 0 Downloads 1.23 MB