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 | 1983 |
| 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.
MEDIA OF COMMUNICATION
Trending!
The advent of printing is the key to our modern consciousness, argued Marshall McLuhan. Printing was so important because it allowed mass communication. The Chinese were using wooden block presses as early as A.D 600 and had movable clay type by A.D1000.
2195 Views
0 Downloads
52.21 KB
NARROWCAST MEDIA: FILM AND CINEMA, CABLE TELEVISION
Trending!
What is Film? Film is a medium of communication which combines visual and audio (audiovisual). It contains the recording of a story, acted by people to make it as close to reality as possible. The Collins English Dictionary defines film as a sequence of images of moving objects photographed by a camera providing the optical illusion of continuous movement when projected onto a screen.
2309 Views
0 Downloads
34.27 KB
ADJUNCTS OF THE MASS MEDIA
Trending!
Adjuncts of the Mass Media refer to additional sources through which the mass media get information. Simply put, they are the additions to the mass media. The most popular of these adjuncts are the news agencies.
2758 Views
0 Downloads
10.5 KB
SEMATIKI NA PRAGMATIKI
Trending!
Richmond (2012 anafafanua maana ya Semantiki kwamba ni tawi la isimu ya lugha linalohusu viyambo vya Lugha.Anaendelea kusema kuwa semantiki ni utanzu wa isimu unaojishuighurisha na maana ya maneno au viyambo vya maneno katika Lugha .
3431 Views
2 Downloads
20.4 KB
AINA ZA ANTHROPONOMASTIKI
Trending!
Mitazamo ya majina ya watu huzalisha aina zifuatazo za anthroponomastiki: anthroponimu funge/kimazingira, anthroponimu siha, anthroponimu za kifamilia, anthroponimu ya kidini/kithioforiki, anthroponimu ya kiutani/kilakabu, apotropaiki, matronimu, patronimu, teknonimu, paidinimu, aptronimu na animonimu.
2649 Views
0 Downloads
32.25 KB
ONOMASTIKI KATIKA KISWAHILI
Trending!
Majina ya nchi, mahali au binadamu huweza kutafsiriwa ili kukidhi haja ya watumiaji wa lugha husika. Tafsiri ni mbinu ya uhamishaji wa ujumbe kutoka lugha moja hadi nyingine (Bright, 1991) na husaidia katika urahisishaji wa mawasiliano na uelewano baina ya watu (Crystal, 1987).
2752 Views
0 Downloads
32.06 KB
BMS 101: Introduction To Insurance
Trending!
The study of introduction to insurance has a vital role in explaining and conveying the
underlying principles of conducting insurance business. Insurance is a way of reducing
uncertainty of occurrence of an event. It is in itself an investment. The study will help students who wish to understand, invest or major in insurance as a career option.
2314 Views
1 Downloads
1.03 MB
INTRODUCTION TO PUBLIC RELATION
Public Relations is a powerful tool that can make a vital contribution to the organizational success. An organization’s action can have wide implications. Public relations describe the way issues and messages are communicated between an organization and the public. It is the discipline that looks after corporate reputation.
632 Views
0 Downloads
247.61 KB
CCS 405: Management Information System
Trending!
An information system is a set of interrelated components that collect, manipulate, process and transform data into information and provide feedback to meet a specified objective. A computer based information system is an information system that uses computer technology to perform input, processing and output activities. Due to the massive computerization of manual information systems, computer based information systems are simply referred to as information systems. They are the subject of discussion in this chapter.
2950 Views
0 Downloads
750.01 KB
HSM 222: Health Systems Management
Trending!
What is Health system Management? HSM describes the leadership and general management of hospitals, their networks and other health delivery establishments...
3113 Views
1 Downloads
493.07 KB