Subscribe
Tutorial search

C++ Tutorials


We hope that you will enjoy our C++ tutorials. Feel free to contact us if you would like to be a tutorial hero and contribute your own C++ tutorial to our site. Thank you !

Sort by:
 STRUCTS In C#
STRUCTS In C#
Structs, similar to classes, are used to define various objects in your code. They are stored on the stack, rather than in the managed heap. This means that they are value-type objects and thus, when you pass a struct as a parameter in a function, a copy of the object is actually passed to that function. This can affect the performance of your code if you use structs for large objects. However, since the .Net does not bring in the managed heap, structs are more suitable for small objects of limited functionality and with no inheritance capabilities.
Difficulty:
 Reference Data Types
Reference Data Types
Reference types provide excellent flexibility and performance of large structures. This is the reason that classes are reference types and structs are data value types. As you will probably know, reference types do not store the actual value of the object but a pointer to a memory location. This pointer is stored on the stack whereas the object itself is located in the managed heap.
Difficulty:
 The IF Statement In C#
The IF Statement In C#
The if statement is a so-called conditional statement. It allows you to branch your code depending on whether certain conditions are met or not. C# has two such conditional statements, the if statement and the switch statement. In this tutorial we will talk about the if statement, a frequent element of all programs.
Difficulty:
 Garbage Collection In C#
Garbage Collection In C#
A significant advantage of C# when compared to C++ is the memory management capabilities of the C#. The programmer need not worry about memory management; the garbage collector is assigned this operation on the programmerís behalf. You will probably know that value data types are stored on the stack while reference data types are stored on the managed heap. The stack stores data value types that are not members of objects. Also, in C# it is always the case that if variable a goes into scope before variable b, then b will go out of scope first. For example, if you declare some variables in a method, these variables will go out of scope when the method ends. However, it maybe sometimes that you need to keep these variables long after the method/function ended. This happens for all data declared with the new operator, the reference types. All reference types are stored in the managed heap, which is under the control of garbage collector.
Difficulty:
 Functions In C#
Functions In C#
Functions are a must for modern object oriented programming and for visual programs as well. When you click a button on your mouse an event is generated. This event fires a function that is linked to that particular event. Therefore, you need to define several functions that correspond to various actions your code should perform. They are also useful when you need to call a block of code many times in different parts of your program.
Difficulty:
 Console INPUT/OUTPUT
Console INPUT/OUTPUT
To read some text from the command line you use the Console.Read or Console.ReadLine method implemented in the .net framework. The difference between them is that the Console.Read method reads the next character from the command line, whereas Console.ReadLine reads the next line of characters instead of just a simple character. The Console.Read method returns an integer and should be cast to a char during the input. There is also a special function called Console.ReadKey( Boolean display) which obtains the key that is pressed on the keyboard and if the display parameter is false it depicts it.
Difficulty:
 FOR Loops In C#
FOR Loops In C#
C# provides several mechanisms for flow control in a program. The loops in C# allow you to execute a block of code repeatedly, until a certain condition is met. This condition can be the number of repetition, a variable taking a specified value or something completely different. The for loop allows you to repeatedly execute a block of code for a specified number of times.
Difficulty:
 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.
Difficulty:
Writing a video player with ffmpeg - MASSIVE tutorial and coding guide!
Writing a video player with ffmpeg - MASSIVE tutorial and coding guide!
Writing a video player with ffmpeg - MASSIVE tutorial and coding guide!
Difficulty:
Structured Programming - How it is important in field of Software Development
Structured Programming - How it is important in field of Software Development
Structured Programming - How it is important in field of Software Development
Difficulty:
Create a Celsius to Fahrenheit Converter
Create a Celsius to Fahrenheit Converter
Create a Celsius to Fahrenheit Converter
Difficulty:
Switch Extensions for Eclipse C/C++ Development Tooling
Switch Extensions for Eclipse C/C++ Development Tooling
Discover a plug-in to the Eclipse C/C++ Development Tooling that provides new C/C++ Project Types with PowerPC-specific GNU toolchain switches available in the project properties. Also, learn how this plug-in limits the number of conflicting switch combinations that are possible.
Difficulty:
C Win32 API Wrapper - How to wrap the Win32 API in classes
C Win32 API Wrapper - How to wrap the Win32 API in classes
C Win32 API Wrapper - How to wrap the Win32 API in classes
Difficulty:
Storing Strings in Arrays in C
Storing Strings in Arrays in C
Storing Strings in Arrays in C
Difficulty:
Understand the C/C++ debugger interface
Understand the C/C++ debugger interface
Discover how the Eclipse C/C++ Development Tooling framework extends to support custom debuggers. With the right plug-in, a custom debugger can access the full spectrum of the CDT's graphical debugging environment, for example, code-stepping and breakpoints. Learn how to construct this plug-in, with a focus on the C/C++ Debugging Interface.
Difficulty:
Total Tutorials in Category: 651