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 4847
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
AHT 101: PRINCIPLES OF ARCHAEOLOGY
UPDATED NOTES ON PRINCIPLES OF ARCHAEOLGY
42 Pages 1134 Views 0 Downloads 509.92 KB
AHT200 HISTORY OF KENYA Trending!
UPDATED NOTES ON HISTORY OF KENYA
45 Pages 8474 Views 1 Downloads 459.58 KB
AHT 202 EARLY AFRICAN ARCHAEOLOGY Trending!
UPDATED NOTES ON EARLY AFRICAN ARCHAEOLOGY
32 Pages 9152 Views 0 Downloads 125.11 KB
BHT315 SERVICE PRACTICAL TESTS Trending!
PAST SERVICE PRACTICAL TESTS
6 Pages 8987 Views 2 Downloads 212.6 KB
NGE308 RESEARCH METHODOLOGY Trending!
UPDATED NOTES ON RESEARCH METHODOLOGY
418 Pages 7986 Views 1 Downloads 1.91 MB
BUD001 HIV/AIDS
LATEST NOTES ON HIV/AIDS
309 Views 0 Downloads 130.12 KB
DPL101 PRINCIPLES OF MANAGEMENT Trending!
UPDATED NOTES ON PRINCIPLES OF MANAGEMENT
6 Pages 9267 Views 0 Downloads 146.33 KB
DPL101 PRINCIPLES OF PROCUREMENT AND LOGISTICS Trending!
LATEST NOTES ON PRINCIPLES OF PROCUREMENT AND LOGISTICS
7 Pages 8511 Views 1 Downloads 40.8 KB
BUDOO1 BUSINESS MATHEMATICS Trending!
UPDATED NOTES ON BUSINESS MATHEMATICS
8 Pages 9537 Views 1 Downloads 1.15 MB
EAE200 ECONOMICS OF GLOBAL BUSINESS Trending!
This course is designed to provide students with a systematic understanding of the critical aspects of the contemporary global economic and business environment especially the global business strategy formulation and implementation, and ethical concerns in global business
9324 Views 0 Downloads 834.5 KB