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 4896
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
BCM 213: STRENGTH OF CONSTRUCTION MATERIALS Trending!
UPDATED NOTES ON STRENGTH OF CONSTRUCTION MATERIALS
57 Pages 8926 Views 0 Downloads 1.99 MB
BCM107: CONTRACT LAW Trending!
THIS COURSE ENTAILS NOTES ON BUSINESS OF CONSTRUCTION AND CONTRACT BASICS (REGULATORY/LICENSING REQUIREMENTS)
19 Pages 9517 Views 0 Downloads 839.77 KB
DRAINAGE CONSTRUCTION METHODS Trending!
UPDATED NOTES ON DRAINAGE CONSTRUCTION METHODS
8 Pages 8001 Views 0 Downloads 5.93 MB
ECT300: EDUCATIONAL TECHNOLOGY Trending!
This course discusses the process of nature of communication and its effects in learning
114 Pages 10634 Views 3 Downloads 1.46 MB
ISC 404: DIGITAL LIBRARIES Trending!
This course contains concept definitions. Overview of digital libraries. Components and Characteristics of digital libraries:Impact. Digital collections: types and formats. Issues in the development of digital libraries.
28 Pages 8486 Views 1 Downloads 539.49 KB
Introduction to Law Trending!
This course contains the basic concepts of law
25 Pages 2451 Views 2 Downloads 327.19 KB
EET 201: MACROECONOMIC THEORY II
UPDATED NOTES ON MACROECONOMIC THEORY II
100 Pages 1557 Views 0 Downloads 1.48 MB
COMPUTER STUDIES PAPER 1 REVISION BOOKLET Trending!
REVISION COMPUTER STUDIES PAPER 1,10 Sample Papers + Answers
10635 Views 0 Downloads 544.15 KB
COMPUTER STUDIES COMPREHENSIVE NOTES Trending!
A computer is an electronic device that accepts data, as input and transforms it under the influence of a set of special instructions called programs, to produce the desired output (referred to as information)
9394 Views 1 Downloads 1.79 MB
EAC 2251: STRUCTURES 2 Trending!
UPDATED NOTES ON MECHANICAL VENTILATION AND AIR CONDITIONING ENGINEERING
No pages found 8621 Views 1 Downloads 189.38 KB