szaboz.com
c++ free and complete tutorial PDF Print E-mail
Written by zadminz   
Thursday, 06 August 2009 17:25
Article Index
c++ free and complete tutorial
Data Types
II. Operations and Expressions
Control Flow: Sequence, Decision Making and Iteration
The Functional Abstraction
A primitive data structure: Arrays
User-defined Data Types: Classes
All Pages

hi;

peace and loveĀ 

this is a c++ tutorial with examples and so on...__zee

I

Abstraction

top

Computer scientists use abstraction to understand and solve problems and communicate their solutions with the computer in some particular computer language.
# data abstraction
{allow user to build data structures from primitive types and able to use them as primitive ones}
# (functional) procedural abstraction

Compile the *.cpp source

in linux systems:


please note you need to have installed (your choice of) compiler.

I use g++ which is available for free

run this code in your terminal

sudo aptitude update && sudo aptitude install g++


#include
using namespace std;


int main()
{
cout << "hello world\n";
}

save this as file_name.cpp.
from the same folder run:

any_user@host# g++ file_name.cpp -o filename

then run:

any_user@host# ./filename

(Make sure not using gpp as it works for c source.)

output:

hello world





Last Updated on Friday, 24 December 2010 19:58
 
© 2012 szaboz.com
powered by programming tutorials forums szaboz.com