Tutorial search
Tutorials
Stuff
Affiliates
Photoshop Templates
Featured Photoshop templates - professional ready to use designs for your next project.
View all templates
Hello World with Cpp - C++ tutorial

Hello World with Cpp tutorial description
| Added on | 09.03.2008 |
| Total clicks | 37 |
| Tutorial Rating | 0 |
| Tutorial Difficulty | 0 |
Hello World with Cpp
More cool C++ tutorials:

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.

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.

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.

C++ has a built-in multiple branch selection statement, called switch which successively tests the value of an expression against a list of integer or character constants.





