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 | 1981 |
| 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.
HRD 100: Reading skills (Documentation)
Trending!
A documentation style is a standard approach to the citation of sources that the author of a paper has consulted, abstracted, or quoted from. It prescribes methods for citing references within the text, providing a list of works cited at the end of the paper, and even formatting headings and margins. Using sources in your research paper is an important part of building and supporting your argument.
2891 Views
0 Downloads
14.67 KB
HRD 200: STATE, SOCIETY AND DEVELOPMENT
Trending!
The purpose of this course is to enable one gain deep understanding of the terms state,
society, and government; how they came about and their impact on development.
2919 Views
1 Downloads
72.29 KB
AKS 400: SOCIOLINGUISTICS
Trending!
Lengo la kozi hii ni kudadisi na kueleza uhusiano uliopo kati ya lugha na jamii.
Somo hili linalenga kuchunguza hali mbalimbali za kijamii na jinsi zinavyoathiri
matumizi ya lugha katika miktadha mbalimbali. Aidha, kozi hii itawawezesha
wanafunzi kudhibiti mbinu na ujuzi wa mawasiliano miongoni mwao na watu
wengine kwa kuzingatia kaida za lugha husika.
3970 Views
5 Downloads
1.27 MB
Creating a Brochure, Flyer and Newsletter Using Microsoft Publisher
Trending!
This tutorial will proceed from what we think is the easiest publication to the most complex. First we’ll create a flyer using Microsoft Publisher 2007. Then, we’ll create a brochure, and finally a newsletter. Each skill we learn in the flyer will be of use in the brochure. The flyer and brochure techniques will also be used in the newsletter.
3499 Views
0 Downloads
3.1 MB
AKI 201:THEORY AND STANDARDIZATION OF KISWAHILI
Trending!
Kozi hii ni ya lazima kwa wanafunzi wote wa Kiswahili katika Chuo Kikuu cha Maseno,semista ya kwanza,mwaka wa pili.Mwishoni mwanafunzi atakadiriwa kwa mtihani.
3459 Views
5 Downloads
29.43 KB
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.
2437 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.
2866 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.
5028 Views
10 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.
2374 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.
2174 Views
0 Downloads
54.53 KB