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 | 2051 |
| 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.
SOCIAL RESEARCH METHODS
Trending!
Actually research is simply the process of arriving as dependable solution to a problem through the planned and systematic collection, analysis and interpretation of a data. Research is the most important process for advancing knowledge for promoting progress and to enable man to relate more effectively to his environment to accomplish his purpose and to solve his conflicts.
53 Pages
2022 Views
0 Downloads
262 KB
COMPUTER PACKAGES MANUAL
Trending!
A computer is an electronic device that is fed with raw data which it processes and manipulates to give out information. It is basically computing machine.
65 Pages
2818 Views
6 Downloads
1.66 MB
SIT 100: COMPUTERS APPLICATIONS
Trending!
The aim of this course is to provide a comprehensive understanding of how computers work and the use of application software in businesses today.
107 Pages
2750 Views
0 Downloads
1.4 MB
A Comprehensive Guide to Writing Quality Composition
Trending!
A Comprehensive Guide to Writing Quality Composition With Sample Compositions.
34 Pages
3036 Views
1 Downloads
873.77 KB
HIV/AIDS NOTES
People can become infected with HIV from other people who already have it, and
when they are infected they can then go on to infect other people. Basically, this is
how HIV is spread.
66 Pages
112 Views
0 Downloads
545.92 KB
KCSE STUDY QUESTIONS - ORAL LITERATURE
Trending!
Define the term oral literature; Spoken, acted and performed art whose transmission/ presentation/media is by word of mouth.
10 Pages
4271 Views
2 Downloads
927.14 KB
UCU100: Communication Skills Handbook
Trending!
In this section, we shall examine the field of communication to serve as a foundation to what follows in the course. Principally, we shall define communication; outline its elements, principles and its importance in academic and life in general. We shall also briefly examine the several types of communication.
32 Pages
3855 Views
0 Downloads
427.84 KB
INTRODUCTION TO COMMUNITY DEVELOPMENT
Trending!
For community practitioners to be effective in their work, they need to understand some of the key concepts used in community development. The concepts include: community, development, mobilization, participation, empowerment, sustainability, social change, integrated development, culture, volunteerism and philanthropy. This session introduces participants to these concepts which are important in the performance of their roles
51 Pages
3078 Views
4 Downloads
1.16 MB
Principal and Practice of Management Notes
Trending!
Simplified notes
87 Pages
3380 Views
1 Downloads
854.85 KB