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 1647
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
Simplified C.R.E Form 4 Notes Trending!
Work refers to the use of bodily or mental powers with the purpose of doing or making something. It can also refer to what somebody does to earn a living e.g. employment. Work is the opposite of play or recreation. We work in order to try and change our environment for the better.
3844 Views 0 Downloads 91.5 KB
ARE 401: CONTEMPORARY RELIGIOUS THOUGHT Trending!
Alongside arts, philosophy and science, religion has been one of the dominant preoccupation of humanity .Religion has had more wide spread appeal than all the other activities in the past and modern. It determines how people act and organize themselves as a family and a society . It cannot be left out as a very significant aspect of society.
2861 Views 0 Downloads 292.5 KB
BIOLOGY ESSAYS GUIDE Trending!
Explain the various ways in which a typical cell is adapted to its functions.
32 Pages 4433 Views 0 Downloads 475.22 KB
AGRICULTURE PAST KCSE KNEC TOPICALS Trending!
K.C.S.E PAST PAPERS
40 Pages 3324 Views 1 Downloads 640 KB
Mastering Chemistry Practical Guide Trending!
This is a comprehensive chemistry practical guide.
24 Pages 5338 Views 7 Downloads 903.51 KB
JIJIZE KISWAHILI FASIHI REVISION Trending!
Fasihi ni sanaa ya lugha. Fasihi hutumia lugha kutoa sanaa mbalimbali katika jamii.
57 Pages 4316 Views 0 Downloads 1021.41 KB
JIJUZE KISWAHILI USHAIRI Trending!
Ushairi ni utungo wa kisanaa unaotumia lugha teule na mpangilio fulani wa maneno badala ya kutumia lugha natharia(mfululizo).
28 Pages 6461 Views 9 Downloads 3.8 MB
CHOZI LA HERI MWONGOZO TOLEO LA 2021 Trending!
Jalada ni sehemu iliyoko juu ya kitabu hasa huwa ngumu na mambo yaliyo muhtasari Wa kile msomaji ataraji ndani. Jalada huwa kuwili yaani, jalada LA mbele na LA nyuma. Kunavyo vipengele muhimu hasa rangi za michoro na maandishi.
54 Pages 3946 Views 0 Downloads 1.34 MB
KIGOGO MASWALI NA MAJIBU Trending!
Anwani kigogo ina maana – mtu mwenye madaraka makubwa ya kiutawala
19 Pages 3831 Views 0 Downloads 376.35 KB
LATEST CHOZI LA HERI GUIDE
Jalada la Riwaya ya Chozi la Heri ni tokeo la usanii wake , Robert Kambo. Katika upande wa mbele sehemu ya juu, mna rangi ya kijani kibichi iliyokolea. Maana ya rangi hii ni uhai na rutuba. Riwayani yamo maeneo yaliyo na rutuba yanayotoa mazao mengi. Katika eneo la Msitu wa Heri alikoishi Ridhaa kwa miongo mitano, mwanzoni kulikuwa kama jangwa la Kalahari lakini Ridhaa alihakikisha kuwa kijiji hiki kimepata maji ya mabomba hadi eneo zima likatwaa rangi ya chanikiwiti. Miti mingi kama Miambakofi, mivule na miti mingine kapandwa. Maeneo mengine yaliyokuwa na rutuba ni kama Msitu wa Mamba. Watu waliogura makwao walipohamia hapa walikata miti na kupanda vyakula kama mahindi ambayo yalifanya vizuri mno.
772 Views 0 Downloads 525.71 KB