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 | 4965 |
| 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.
GRADE 5 TERM 3 AGRICULTURE SCHEMES OF WORK
Trending!
Enhance term 3 of AGRICULTURE with the MOUNTAIN TOP Schemes of Work. Perfect for teachers seeking comprehensive curriculum guidance.
9 Pages
8519 Views
1 Downloads
298.8 KB
Grade 5 Music Activities Lesson Notes
Trending!
Introduce Grade 5 students to the fun of music with these Music Activities Notes. This booklet offers easy-to-follow lessons, exercises, and activities to make learning music enjoyable. Designed for teachers and students, it breaks down music basics and encourages creativity. Perfect for anyone wanting to make music lessons exciting and simple!
26 Pages
6855 Views
0 Downloads
538.71 KB
GRADE 5 PHYSICAL HEALTH EDUCATION LESSON NOTES
Trending!
This booklet contains CBC Grade 5 Physical Health Education Notes. These notes are aggregated from KICD approved textbooks such KLB Visionary, Super Minds, Spotlight.
34 Pages
7908 Views
0 Downloads
569.06 KB
GRADE 5 CHRISTIAN RELIGIOUS EDUCATION LESSON NOTES
Trending!
Download new CBC grade 5 Christian Religious Education Activities lesson notes. This is a comprehensive professionally prepared notes for teaching grade 5 pupils.
31 Pages
2911 Views
1 Downloads
451.82 KB
GRADE 5 SOCIAL STUDIES LESSON NOTES
Trending!
This booklet contains CBC Grade 5 Social Studies Notes. These notes are aggregrated from KICD approved textbooks such KLB Visionary, Super Minds, Spotlight.
38 Pages
11139 Views
3 Downloads
741.31 KB
Agriculture Prediction Question & Answers Form (1-4)
Trending!
Below are the Counties from examinations questions have been got and the short codes as used in the question as well as the answers.
338 Pages
8021 Views
0 Downloads
10.64 MB
Chemistry Practical Study Pack from (1989-2016) with Answers
Trending!
This booklet contains practical questions, coordinated mark schemes, preparation and confidential instructions. It’s ideal for your preparations for National Exams. Download your copy today!
No pages found
9316 Views
2 Downloads
1.67 MB
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
9850 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
10046 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
9810 Views
0 Downloads
2.28 MB