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 4905
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
Printers and Computer Software Trending!
Updated notes on Computer Software
11 Pages 7640 Views 0 Downloads 4.56 MB
Types of AC systems Trending!
This course contains detailed notes on the different types of AC systems
5 Pages 8562 Views 0 Downloads 961.61 KB
SCS B204 WEB DEVELOPMENT TECHNOLOGIES Trending!
Updated notes on web development technologies
19 Pages 10179 Views 0 Downloads 654.32 KB
Fluid Mechanics 1 Trending!
Updated notes on fluid mechanics
72 Pages 7695 Views 0 Downloads 2.15 MB
sexually transmitted diseases Trending!
Updated notes on sexually transmitted diseases
97 Pages 8622 Views 0 Downloads 1.48 MB
DEVELOPMENT OF LATERAL SURFACES OF SIMPLE AND SECTIONED SOLIDS Trending!
Updated notes on development of lateral surfaces of simple and sectioned solids
58 Pages 8633 Views 0 Downloads 1.29 MB
Physics transformer Trending!
Updated notes on Physics transformer
No pages found 8979 Views 0 Downloads 813.07 KB
EAC 2240: ERRORS AND ACCURACY Trending!
Updated notes on engineering surveying
8 Pages 8148 Views 0 Downloads 236.97 KB
Matters Cycling the Ecosystem Trending!
This course differentiates the different matter cycling the ecosystem
6 Pages 7866 Views 0 Downloads 850.52 KB
EDFO 418: COMPARATIVE EDUCATION Trending!
Updated notes on comparative education
48 Pages 9143 Views 0 Downloads 758.32 KB