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 | 5115 |
| 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.
CMM 211: PUBLIC SPEAKING
Trending!
The purpose of the course is to enable the learner to master and apply the principles and practice of public speaking in diverse contexts.
6347 Views
0 Downloads
60.32 KB
CRISIS MANAGEMENT
Trending!
Reputation crisis involves situations where an organization risks or experience serious damage to its reputation. Public relations are about reputation-the result of what you do, what you say, and what others say about you.
7271 Views
0 Downloads
15.02 KB
MWONGOZO WA NAKURUTO NA Clara Momanyi
Trending!
Nakuruto anafungua chumba chake cha kulala taratibu na kujitupa kitandani
ili kujitenga na uhalisi uliomkera. Anapotupia jicho kitanda anahisi vyema na
kumshukuru Mungu kwa kuwapa wanadamu usingizi ambao uwasahulisha
hali mbaya kwa muda.
9711 Views
11 Downloads
35.05 KB
CONCEPTS IN MEDIA STUDIES
Trending!
Culture: Anthropologists define culture as everything that occurs in a society-all of the customs and practices handed down from generation to generation. These contributions usually come from formal institutions such as churches, the government and increasingly the media.
6403 Views
0 Downloads
18.59 KB
FUNCTIONS OF MASS COMMUNICATION
Trending!
The function of mass communication in the society is enormous. This is evident in the different appellations or names the journalists are called. Names like watchdog, intellectual peeping toms, fourth estate of the realm and so on. The Press helps sanitise the society of all forms of corruption by scrutinizing the actions, policies, and performance of those who govern.
6111 Views
0 Downloads
54.53 KB
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.
6309 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.
6335 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.
6852 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 .
7063 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.
7066 Views
0 Downloads
32.25 KB