tux Drawing Line With DDA Algorithm using OpenGL in C++

The code is based on the popularly used dda line drawing algorithm.It picks up two point from the window and change the color of pixels which are closest to vectorial line between them.
(more…)

December 6, 2009
Posted in C++, OpenGL — TaZ @ 9:38 pm

tux How to Use Template Class or Function in C++ (Stack Implemantation)

How to Use Template Class or Function in C++ (Stack Implemantation)

1-How to use a function with different data types in c++. i mean, i have a function
that name is abs() and i want to use it just like this:

int x;foo(x); or
float x;foo(x); or
char x;foo(x)…
(more…)

November 30, 2009
Posted in C++ — banias @ 12:44 pm

tux How to Make a Stack using Linked List in C++

c++ stack codes

(more…)

November 21, 2009
Posted in C++ — TaZ @ 10:19 pm

tux How Can You Run a Program With Arguments in Command-Line(Python,C++)

A command-line argument is the information that follows the name of the program on the command line of the operating system.

(more…)

November 15, 2009
Posted in C++, Programming, Python — TaZ @ 10:58 pm