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 1488
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
CRE PASS REVISION KIT Trending!
The booklet contains complete CRE papers with complete Marking schemes. this is a great revision material for students preparing for their final year exams.
4474 Views 2 Downloads 336 KB
CRE TOP REVISION BOOKLET Trending!
CRE top revision booklet is a comprehensive test papers with marking schemes. This is a premium revision material for preparing students for their final exams. Get a copy and excel.
4275 Views 0 Downloads 261 KB
CRE PAPER 1 REVISION BOOKLET Trending!
The booklet contains 10 model paper 1 test papers with comprehensive and well researched marking schemes.
3094 Views 2 Downloads 323 KB
CRE PAPER 2 REVISION BOOKLET Trending!
The booklet contains 10 model paper 2 test papers with comprehensive and well researched marking schemes. This revision material is ideal for learners preparing for their KCSE Examination. Consider getting a copy!
5009 Views 15 Downloads 339.5 KB
ENGLISH ORAL SKILLS GUIDE Trending!
The booklet covers all the aspects of oral skills covered in KNEC syllabus. It covers areas like Pronunciation,Short forms,Sound Patterns,Etiquette,Oral Narratives e.t.c
4693 Views 4 Downloads 157.25 KB
ENGLISH GRAMMAR NOTES
This text examines the foundational principals of grammar and builds upon those principles, demonstrating the close interrelationship with all the parts of speech in both verbal and written communication.
974 Views 1 Downloads 219.44 KB
English Grammar Simplified Notes Trending!
This book has been specially prepared to meet the needs of Secondary School Students and learners of English as a second language. It embarks on enlightening them on the nature and structure of the English Grammar in a very simplified and understandable manner.
3881 Views 2 Downloads 683.5 KB
EAP 401: EDUCATIONAL ADMINISTRATION Trending!
Understanding the concept of administration, educational administration and theory
169 Pages 4397 Views 3 Downloads 1.26 MB
EFN 402 COMPARATIVE EDUCATION Recommended! Trending!
Comparative education is a discipline within the field of education. Its main purpose is to enlighten the teacher trainee on issues of educational systems in other countries with a view of broadening their perspective on educational problems and attempted solution.
42 Pages 4656 Views 45 Downloads 1.02 MB
SBT 309 - ADVANCED PLANT ECOLOGY Trending!
UPDATED NOTES ON ADVANCED PLANT ECOLOGY
4865 Views 2 Downloads 451.5 KB