Tutorial search

Tutorials
Stuff
Affiliates

Photoshop Templates


Featured Photoshop templates - professional ready to use designs for your next project.

View all templates

Using vector instead of arrays to prevent most of memory leaks - C++ tutorial


Most of beginners define arrays of limited size such as:

int array[100]; // array that can accomodate 100 integer values

These are ok, but your requirement may be different, and you want your application to determines the size of array at runtime, so if your requirement is to use 10 elements only, that means 90 are unused but memory is still allocated for them while application is running. On other hand your application requires 110 elements to be saved, the last 10 will be unallocated spaces if array size is 100, and access to unallocated memory address may result in applciation crash and/or system level damage.
Category: C++ tutorials > Programming - Difficulty:

More cool C++ tutorials:



 Introduction To Open GL with C#
Introduction To Open GL with C#
OpenGl is an API similar to direct3D. However, OpenGL (Open Graphics Library) is not supported by Microsoft and is a cross-language, cross-platform API used for writing applications that produce 2d or 3D graphics. Over 300 functions are implemented in this API which can help you draw complex 3D scenes from primitive data such as polygons and triangles. Mesa 3D is an open source library API which is also compatible with the OpenGl protocol.
Category: C++ tutorials > Graphics - Difficulty:
Keywords - C++
Keywords - C++
Keywords are the reserved words that have predefined meanings in C++.
Category: C++ tutorials > Basics - Difficulty:
Using Inno Setup5 - Creating an install package with this setup compiler
Using Inno Setup5 - Creating an install package with this setup compiler
Using Inno Setup5 - Creating an install package with this setup compiler
Category: C++ tutorials > Games - Difficulty:
 Regular Expressions In C#
Regular Expressions In C#
A regular expression’s use is for finding substrings in a large string expression. It supports the use of various wild cards and other very useful techniques for performing the required actions. The namespace System.Text.RegularExpressions contains a number of classes associated with regular expressions.
Category: C++ tutorials > Programming - Difficulty:
Windows Programming
Windows Programming
Windows Programming, The guts of Windows Applications.
Category: C++ tutorials > Basics - Difficulty: