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 4982
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
CBC GRADE 2 EXAMS SET 2 Trending!
Download a copy of the CBC GRADE 2 EXAMS SET 2. The Document contains all the Subject Areas in Grade 2. This can be very resourceful in evaluating your learners.
12 Pages 7291 Views 0 Downloads 514.18 KB
CBC GRADE 2 EXAMS SET 3 Trending!
Download a copy of the CBC GRADE 2 EXAMS SET 3. The Document contains all the Subject Areas in Grade 2. This can be very resourceful in evaluating your learners.
15 Pages 7176 Views 1 Downloads 575.6 KB
GRADE 2 PREMIUM ASSESSMENT TEST Trending!
Download a copy of the GRADE 2 PREMIUM ASSESSMENT TEST. The Document contains all the Subject Areas in Grade 2. This can be very resourceful in evaluating your learners.
14 Pages 8357 Views 0 Downloads 458.05 KB
SMA 101: BASIC MATHEMATICS Trending!
This text is designed as a one-semester introduction to mathematics course to be taken by students in a wide variety of majors, including mathematics, actuarial science, statistics, chemistry, physics, meteorology, geology, computer science,engineering, economics, business and other social sciences.
144 Pages 9397 Views 7 Downloads 1.09 MB
SBT 101: SURVEY OF THE PLANT KINGDOM Trending!
This course aims at introducing the learner to all groups of plants to be studied during the whole of the Bachelors course. The major morphological; identification features and the life cycles are covered from all the major plant groups.
156 Pages 7211 Views 3 Downloads 4.95 MB
EPS 100: INTRODUCTION TO PSYCHOLOGY Trending!
In this introductory lecture, I shall first introduce you to the definition of the term psychology, after which I will focus on the psychological perspectives that are currently used in the study of behavior and mental processes
75 Pages 8937 Views 5 Downloads 512.37 KB
SZL 100: GENERAL ZOOLOGY
The current space explorations seem to suggest that life exist in other planets. The sun, the earth, and the other planets belong to the solar system that occurs towards the outer edge of the Milky Way. The Milky Way is just one of the over 10 billion galaxies. A galaxy is any of the large star systems held together by gravitational pull. A Milky Way is a defuse band of light stretching across our sky with millions of faint stars and is visible on clear nights
102 Pages 620 Views 3 Downloads 463.36 KB
SZL 100: GENERAL ZOOLOGY
The current space explorations seem to suggest that life exist in other planets. The sun, the earth, and the other planets belong to the solar system that occurs towards the outer edge of the Milky Way. The Milky Way is just one of the over 10 billion galaxies. A galaxy is any of the large star systems held together by gravitational pull. A Milky Way is a defuse band of light stretching across our sky with millions of faint stars and is visible on clear nights
102 Pages 359 Views 2 Downloads 463.36 KB
SCH 100: Fundamentals of Inorganic Chemistry Trending!
Fundamental of Inorganic chemistry is a core unit in chemistry at the undergraduate level for the Bachelor of Education as well as Bachelor of Science degrees. The unit aims at introducing the learner to various basic concepts in chemistry. It endeavours to equip the learner with sufficient knowledge to enable him/her to comprehend and relate to other concepts encountered at a later stage, as he or she dwells more in chemistry and other related sciences.
84 Pages 8754 Views 4 Downloads 1.47 MB
Biology Form 4 Notes Trending!
Genetics is the study of how genes and how traits are passed down from one generation to the next. Our genes carry information that affects our health, our appearance, and even our personality!
54 Pages 7757 Views 1 Downloads 1.29 MB