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 | 2064 |
| 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.
Investment and portfolio management Notes 4th year
Trending!
There is science behind selecting the right investment mix for a client and perfectly balancing the risk tolerance.Portfolio management is the process of choosing and managing a set of investments to meet the specific financial goals of the company or an individual.
245 Pages
2649 Views
0 Downloads
1.91 MB
DSW; Communication skills Module 1 Notes
Trending!
Communication as key factor in any organizaton refers to the transfer of information from one person to another.
83 Pages
3774 Views
0 Downloads
832.2 KB
KMTC Students Handbook
Trending!
This booklet provides important information that governs the conduct of students in theCollege. The guidelines contained herein will enable students cope with life in the
College in pursuit of studies besides individual development and fulfillment. The rules and regulations contained in the Students Handbook have been simplified to provide general information on academic programmes, policies, students services as well as facilities available to make students stay at KMTC easy. Information on corrective and disciplinary processes has been clearly outlined.
64 Pages
3770 Views
4 Downloads
13.89 MB
Introduction to orthopaedics Notes
Trending!
Orthopaedics is the study of the locomotor system.Historically derrived from Greek meaning STRAIGHT CHILD.
24 Pages
3661 Views
0 Downloads
4.87 MB
Anatomy and physiology revision Questions and Answers Book
Trending!
Anatomy and physiology is learning the specialised words that are used.The purpose of this Anatomy and physiology revision Question and Answer book will help the student to pas his or her exams well.
538 Pages
3607 Views
1 Downloads
2.11 MB
FCE 372;Engineering Management 1 Notes 3rd Year
Trending!
Engineering management is a specialized form of management that is concerned with the application of engineering principles to business practices
54 Pages
3910 Views
0 Downloads
525.22 KB
FCE 311;Geotechnical engineering 1 Notes 3rd Year
Trending!
Geotechnical engineering involves soil mechanics, soil formation-physical and chemical weathering, residual and alluvial soils plus tropical soils.
65 Pages
3933 Views
0 Downloads
3.13 MB
FCE 104;Elements of Philosophy Notes 1st Year
Trending!
Philosophy comes from two Greek words PHILEIN meaning LOVE and SOPHIA meaning WISDOM. Therefore, philosophy is the study of love and wisdom.
25 Pages
4233 Views
0 Downloads
371.33 KB
Communicable and epidemiology Notes
Trending!
Communicable are diseases spread from one person to another or from an animal to a person. The spread often happens via airborne viruses or bacteria but also through blood or other bodily fluids.
103 Pages
3118 Views
1 Downloads
4.8 MB
NUR/NUP 221;Health Assessment course outline
Trending!
This course is designed to provide the student with knowledge and skills needed to assess the health status of clients/patients across lifespan in order to identify abnormalities and plan for intervention
4 Pages
3778 Views
0 Downloads
172.33 KB