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 | 2067 |
| 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.
KMTC Research policy booklet
Trending!
This a simplified KMTC Research policy booklet
22 Pages
2043 Views
1 Downloads
635.94 KB
Research process in nursing notes
The purpose of this book is to help the student to study the research process in nursing easily
No pages found
1997 Views
1 Downloads
5.59 MB
KMTC Human Resource policies and procedures booklet
Trending!
This is a simplified KMTC Human Resource policies and procedures booklet to guide students on rules and regulations of the institution
105 Pages
3590 Views
1 Downloads
645.67 KB
Entrepreneurship Notes
Entrepreneurship is the ability and readiness to develop,organize and run a business enterprise along with any of its uncertainities in order to make profit.
87 Pages
804 Views
0 Downloads
241.4 KB
Introduction to Guidance and couselling Module 3 notes
Trending!
Guidance in simple terms means to direct or provide assistance to someone who needs help.Counseling refers to proffessional services provided to an individual who is facing the problem and needs help to overcome the problem.
95 Pages
3344 Views
0 Downloads
860.29 KB
SCI 442: Introduction to Data Mining Notes 4th Year
Trending!
Data mining is the process of searching and analyzing a large batch of raw data in order to identify patterns and extract useful information. Companies use data mining software to learn more about their customers. It can help them to develop more effective marketing strategies, increase sales, and decrease costs.
3211 Views
0 Downloads
333.5 KB
Introduction to psychology Module 1 Notes
Trending!
Psychology is the science of human and animal behavior since its emergence as a separate science and several changes its research.
75 Pages
3857 Views
2 Downloads
511.97 KB