Tutorial search
Tutorials
Stuff
Affiliates
Photoshop Templates
Featured Photoshop templates - professional ready to use designs for your next project.
View all templates
Value Data Types - C++ tutorial

Value Data Types tutorial description
| Added on | 07.08.2008 |
| Total clicks | 6 |
| Tutorial Rating | 0 |
| Tutorial Difficulty | 0 |
Value Data Types
More cool C++ tutorials:

Simple and effective tutorial of multithreading with Win32

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 while loop is a pre-test loop and is used to execute a block of code for a number of times not known before the loop begins. The do..while loop is a post-test loop and is used for the same purposes as the while loop.

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.





