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 | 1998 |
| 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.
Biology form 4 Handwritten notes
Trending!
The purpose of this biology form 4 handwritten simplified notes is to assist the students and teachers to finish the syllabus within the shortest time possible to allow students to get clear concepts and knowledge of biological terms.
103 Pages
4107 Views
6 Downloads
14.71 MB
KLB Physics F1 Notes
Trending!
Physics is defined as the study of matter and its relation to energy. The subject is
applied in explaining phenomena like eclipse, lightning, rainbow, mirage and
many other wonders of nature. Physics explains the how and why behind the:
• falling of bodies towards the ground.
• daily occurrence of tides in the sea.
• rising up of a liquid through a drinking straw.
• cracking sound produced when removing a nylon cloth from the body, and
many more.
• rapid technological developments in communication,
301 Pages
4284 Views
1 Downloads
6.59 MB
KLB Physics form 4 notes
Trending!
Physics is defined as the study of matter and its relation to energy. The subject is
applied in explaining phenomena like eclipse, lightning, rainbow, mirage and
many other wonders of nature. Physics explains the how and why behind the:
• falling of bodies towards the ground.
• daily occurrence of tides in the sea.
• rising up of a liquid through a drinking straw.
118 Pages
3507 Views
1 Downloads
11.91 MB
KLB PHYSICS FORM 4
Trending!
Secondary notes for form 4 students
59 Pages
2139 Views
1 Downloads
2.34 MB
AKS 302: Nadharia za uhakiki wa fasihi
Trending!
Uhakiki sawa na fasihi ni dhana ambayo imeelezwa kwa njia tofauti na wataalamu mbali mbali. Hatahivyo, wote wameeleza dhana ya uhakiki kwa kuihusisha na fasihi. Tutaanza kwa kunukuu maoni yawataalum mbali mbali kisha tuyaunganishe pamoja ili kutoa fasili moja itakayotuongoza katika kuelewadhana hii ya uhakiki.
94 Pages
2820 Views
1 Downloads
3.51 MB
HPS 103: Human Psychology
Trending!
Psychology is defined as the scientific study of human behavior and mental processes /The science of behavior and mental processes. Psychology studies WHO and WHAT we are, WHY we act and think in a particular manner and what is our potential as an individual.
41 Pages
3381 Views
0 Downloads
1018.59 KB
SILVERBONE EXAMINATION CENTER
Trending!
The paper is a mock examination paper which was done this year 2024 by prestigious National schools
2227 Views
0 Downloads
1.43 MB
CPA-3-Company-Law-Notes
Trending!
This chapter starts by appreciating that besides the company there are other forms of business
associations, such as cooperatives, partnerships and sole proprietorships. It then distinguishes
these other forms of business associations from the company, which is our main focus. The
chapter then goes ahead to look at the law governing other forms of business associations with
special attention to cooperative societies
400 Pages
2357 Views
0 Downloads
2.88 MB