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 6298
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
COMPETENCE-BASED CURRICULUM Trending!
A curriculum usually contains a statement of objectives and specific objectives; it indicates some selection and organization of content; it either implies or manifests certain patterns of learning and teaching, whether because of their objectives or because the content organization requires them.
71 Pages 2412 Views 0 Downloads 721.09 KB
Gauging and Gauge Design Trending!
Updated notes on Gauging and gauge design
7 Pages 9193 Views 0 Downloads 1.05 MB
The Origin of HIV/AIDS
This module states detailed notes on the origin of HIV/AIDS
236 Pages 253 Views 0 Downloads 10.09 MB
Respiratory Physiology Trending!
Updated notes on respiratory physiology
8837 Views 0 Downloads 5.1 MB
KFI 201: CONSUMER THEORY Trending!
Latest detailed notes on consumer theory
32 Pages 7126 Views 0 Downloads 1.1 MB
Cnidaria and Ctenophore Trending!
Updated notes on Cnidaria and Ctenophore
9197 Views 0 Downloads 4.75 MB
NERVOUS TISSUE Trending!
This course provides detailed notes on nervous system
68 Pages 8379 Views 0 Downloads 1.53 MB
INVERTEBRATE ZOOLOGY Trending!
Latest notes on invertebrate zoology
3799 Views 1 Downloads 3.11 MB
PRINCIPLES OF DATABASES
Over the past two decades there has been enormous growth in the number and importance of database applications. Databases are used to store, manipulate, and retrieve data in nearly every type of organization, including business, health care, education, government, and libraries.
1849 Views 0 Downloads 1.13 MB
Integrals of Exponential and Logarithmic Functions Trending!
Integrals of Exponential and Logarithmic Functions
11 Pages 8465 Views 0 Downloads 165.26 KB