INTRODUCTION TO C++ PROGRAMMING YEAR 1
| Institution | UNIVERSITY |
| Course | BACHELOR OF SCIENCE... |
| Year | 1st Year |
| Semester | Unknown |
| Posted By | stephen oyake rabilo |
| File Type | |
| Pages | 33 Pages |
| File Size | 207.62 KB |
| Views | 1948 |
| Downloads | 0 |
| Price: |
Buy Now
|
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.
CRE Revision Questions and Answers For Form 1 to Form 4
Trending!
CRE Revision Questions and Answers For Form 1, Form 2, Form 3 and Form 4.
387 Pages
4581 Views
0 Downloads
1.65 MB
Geography Form 1 to Form 4 Revision Questions and Answers
Trending!
Geography Revision Questions Form One to Four covering all topics. High quality content suitable for teachers and students.
501 Pages
4284 Views
2 Downloads
5.34 MB
Physics Theory Papers Alliance Girls Workshop Notes
Trending!
Download a copy Physics Theory Papers Alliance Girls Workshop Handout Slide Notes. This is instrumental in understanding the exam rubrics in physics theory question papers and how to respond to them.
72 Pages
3585 Views
0 Downloads
2.28 MB
Home Science Revision Series
Trending!
The outstanding features of this book are: Brief and Comprehensive notes, Systematic organization of the topics, Comprehensive revision questions, Answers to all revision questions and sample test papers.
36 Pages
3863 Views
0 Downloads
349.7 KB
Form 1, Term 1 History and Government Lesson Plan
Trending!
Here is a well written lesson plan masterpiece for form 1 term 1. Grab your copy and avoid the stress of writing lesson plans. Its already planned for you with everything you need.
28 Pages
4363 Views
0 Downloads
406.64 KB
History and Government Prediction Questions
Trending!
History and Government Revision Questions Form One to Four covering all topics.
295 Pages
3787 Views
2 Downloads
936.93 KB
Top Student History and Government Revision Kit.
Trending!
Well simplified History questions with answers that run from form one to form four. This will help the candidate to prepare for his/her K.C.S.E exams and pass highly!
58 Pages
3094 Views
0 Downloads
579.99 KB
TOP STUDENT KISWAHILI REVISION KIT
Trending!
TOP STUDENT KISWAHILI REVISION KIT
59 Pages
3555 Views
0 Downloads
545.04 KB
TOP STUDENT PHYSICS REVISION KIT
Trending!
TOP STUDENT PHYSICS REVISION KIT
62 Pages
3493 Views
0 Downloads
724.54 KB
GRADE 8 INTEGRATED SCIENCE NOTES
Recommended!
Trending!
Download high quality comprehensively prepared Grade 8 Integrated Science Rationalized Notes. the notes covers all grade 8 rationalized strands.
51 Pages
8680 Views
31 Downloads
1.29 MB