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 | 1463 |
| 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.
BIT 2103: Formatting in MS Word
Trending!
Formatting in MS Word involves various tools and techniques to enhance the presentation of text, images, and other elements in a document.
2 Pages
3205 Views
1 Downloads
78.03 KB
BIT 2103: Lesson 1 Ms Excel Basics
Trending!
Microsoft Excel is a powerful spreadsheet application developed by Microsoft, widely used for data analysis, calculations, and data visualization. It allows users to organize, manipulate, and analyze data in a tabular format, consisting of rows and columns that form a grid.
4 Pages
3393 Views
0 Downloads
80.18 KB
SCH 200: ATOMIC STRUCTURE AND CHEMICAL BONDING
Trending!
This course covers an experimental foundation of quantum theory; particles and waves; uncertainty principles; wave and wave equation; properties of a well-behaved
wave functions; Schrödinger equation and its solutions; the physical significance of the wave function; solutions of the Schrödinger equation for hydrogen - like atoms: quantum numbers, radial functions, angular, charge clouds and orbital; energy levels, electron configuration and the periodic table; ionic, covalent, hydrogen and metallic bonds, valence bond theory and molecular orbital theory for simple molecules and ions; complex ions; definition and examples of Lewis acids, Lewis bases, co-ordinate bond, ligands and co-ordination compounds; ionic structures and calculation of lattice energies.
88 Pages
4045 Views
2 Downloads
1.86 MB
BIT 2103:Microsoft PowerPoint
Trending!
Microsoft PowerPoint is a presentation software developed by Microsoft, widely used for creating professional slideshows that combine text, images, graphics, animations, and multimedia. It is part of the Microsoft Office suite and is compatible with Windows, macOS, and mobile platforms.
21 Pages
3161 Views
0 Downloads
1.24 MB
AEN 401: VARIETIES OF ENGLISH
Trending!
This module is organized around thirteen major topics. We will first introduce you to the sources of variation which have precipitated the different varieties of English and explain the three major levels of language variation: phonological, lexical and morpho- syntactic. We will then examine the notion of language standardization and discuss different approaches that have been used in classifying the World Englishes.
86 Pages
3401 Views
2 Downloads
1.2 MB
Law of Torts in Kenya
Trending!
There are two types of civil wrongs, and we looked at the first of these - i.e. those arising from a breach of contract. The second type of civil wrong arises from the breach of a duty fixed by law, and owed to people generally and is called a “Tort”.
43 Pages
3212 Views
0 Downloads
585.39 KB
BIT 2103: Lesson 6 Mail Merge
Trending!
The Mail Merge feature of Microsoft Word is a great way to produce a large number of
personalized letters or labels in a short amount of time. The process can seem daunting to a
beginner, but if you break it down into a series of steps, is very easy to manage.
6 Pages
3614 Views
0 Downloads
177.16 KB
INTRODUCTION TO THE LAW OF TORTS
Trending!
Human interactions in the social sphere is bound to create conflicts of interest leading to injury or losses to other people – road use; use of buildings; seeking professional help, sports etc. When these injuries occur, society should have a mechanism of apportioning blame and ensuring reparations. The law of tort is one such mechanism that has been developed by society to apportion responsibility for losses that occur in society.
78 Pages
3407 Views
1 Downloads
1.02 MB
BIT 2103: Lesson 3 Basic tasks in Word.
Trending!
The backstage view helps for creating new documents, saving and opening documents etc.
49 Pages
3199 Views
0 Downloads
2.8 MB
BIT 2103: Lesson 2 Word Processing.
Trending!
A word processor is a program designed for creating and editing
business and personal documents that are primarily text-based.
Most modern word processors enable you to customize fonts and
formatting - and they often include images and other multimedia
files - such as videos and audio clips.
9 Pages
3867 Views
0 Downloads
215.29 KB