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 1612
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
PHYSICAL SCIENCES KNEC NOTES Trending!
General introduction is made to introduce the fundamentals of Chemistry and physics usually form the basis of practical in civil engineering.
50 Pages 3325 Views 6 Downloads 956.85 KB
GEOTECHNOLOGY MODULE 1 KNEC NOTES Trending!
Geotechnology involves the application of technology to engineering problems caused by geological factors. In general, civil engineers deal with two types of earth materials: soils and rocks. Geotechnology is a term used in the literature to describe both the science and engineering of soil deposits, rock masses, and the fluids they contain.
87 Pages 3564 Views 1 Downloads 2.36 MB
Engineering Mathematics I Trending!
This course is about the basic mathematics that is fundamental and essential component in all streams of undergraduate studies in sciences and engineering. The course consists of topics in differential calculus, integral calculus, linear algebra and differential equations with applications to various engineering problems.
321 Pages 4089 Views 0 Downloads 1.47 MB
ECE311: THEORY OF STRUCTURES I Trending!
The course will provide the necessary analytical foundation and engineering insight on the behaviour of determinate structures.
33 Pages 2798 Views 0 Downloads 1.69 MB
KCSE 2024 PREDICTION EXAMS; Mathematics PP1,PP2 Q&A Trending!
Download a copy of the KCSE 2024 PREDICTION EXAMS; Mathematics PP1,PP2 Question Papers with well coordinated Marking Schemes attached. This is good revision material for your upcoming exams.
54 Pages 6636 Views 5 Downloads 4.63 MB
MOKASA II MOCK EXAMS 2024; History PP1 & PP2 Q&A Trending!
Download a copy of the MOKASA II MOCK EXAMS 2024; History PP1 & PP2 Question Papers with well coordinated Marking Schemes attached. This is a good revision material for your upcoming exams. Grab a copy and revise extensively!
23 Pages 3933 Views 0 Downloads 774.71 KB
MOKASA I MOCK EXAMS 2024; History PP1 & PP2 Q&A Trending!
Download a copy of the MOKASA I MOCK EXAMS 2024; History PP1 & PP2 Question Papers with well coordinated Marking Schemes attached. This is a good revision material for your upcoming exams. Grab a copy and revise extensively!
21 Pages 3303 Views 0 Downloads 841.83 KB
KCSE 2024 PREDICTION EXAMS; Business Studies PP1,PP2 Q&A Trending!
Download a copy of the KCSE 2024 PREDICTION EXAMS; Business Studies PP1,PP2 Question Papers with well coordinated Marking Schemes attached. This is a good revision material for your upcoming exams. Grab a copy and revise extensively!
26 Pages 6902 Views 3 Downloads 2.41 MB
MOKASA I MOCK EXAMS 2024; Mathematics PP1 & PP2 Q&A Trending!
Download a copy of the MOKASA I MOCK EXAMS 2024; Mathematics PP1 & PP2 Question Papers with well coordinated Marking Schemes attached. This is a good revision material for your upcoming exams. Grab a copy and revise extensively!
63 Pages 3894 Views 0 Downloads 10.65 MB
Physics first year Trending!
Better Notes
7 Pages 2795 Views 0 Downloads 1.97 MB