iTech College - Internet Technology, Online Education, E-Learning, Technician Training, Tech Tutorials, Distance Education, Virtual Learning C++ Course: Include a File and Main Function - www.itechcollege.com C++ Course: Include a File and Main Function - www.itechcollege.com
Free Courses
HTML
JavaScript
CSS
ASP
PHP
JSP
C++
ASP.NET
SQL
AJAX
FTP
XML

courses > C++ > Include a File and Main Function

C++ is a high-level computer proramming language It is used to develop a wide variety of applications. C++ contains what C language does, and its compilers are compatible with C syntax. The difference is that C++ adds the power of OOP (object-oriented programming).

To run C++ codes, you will need a C++ compiler. if you are using Windows, you can download Borland C++Builder - http://www.codegear.com/downloads/free/cppbuilder

Include a File & Main Function

Let's see an example of C++:

#include <iostream>
int main(){
	cout <<"Hello";
}

In this program, the first line include a header file "iostream":

#include <iostream> 

A number sign (#) are directives for the preprocessor. the directive #include <iostream> tells the preprocessor to include the iostream standard file. This specific file (iostream) includes the declarations of the basic standard input-output library in C++.

In this program, the second line defines the main function.

int main () 

All C++ programs start their execution from the main function. In other words, all C++ programs have a main function, which is always the first ones to be executed in any C++ program.



  Back to Index Page
 Next Page:  

Include a File and Main Function
Output and Input Data
Variables
Arrays
Operators
The If Statement and The Switch Statement
Loops
Function
Read and Write a Text File
Using Database MySQL
Drawing and Graphics


Online Education, Online Training for Your Job, Distance Education, E-learning Programs for Your Career!Online Colleges, Online Universities, E-learning & Distance Education for Your Career! Easy Job Training & Online Courses.


   Email A Friend  
 
Earn Online Degree
for Your Job
I found a job after I earned an online degree!
Online classes for finding a Job. Online College, Online University, Degrees, E-learning school, online certificate Earn your
online degree now!
Online Training
for Good Job
Why I work so hard but earn so little? Why I cannot find a high paying job?
Online training for a Good Jobs. Online Degree, E-learning school, online certificate Go to
online school now!

Copyright ©2024, itechcollege.com. All rights reserved
iTechCollege | About iTech | Contact iTech