C# classes have reference semantics, C# structs have value semantics. C++ has no such distinction. C++ classes and C++ structs both have value semantics. If you need reference semantics, use (smart) pointers.
What is the difference between instantiating a struct and instantiating a class since both instances are named containers for values, and both instances need to be instantiated?
@fredoverflow I just watched your video. What a great little introduction to C++. Do you make videos like this that get someone already familiar with Java and C Sharp to learn C++ quickly? It may be more effective than reading one of those huge C++ books.
By the way, you're German, yes? You have a similar accent to my friend.
@TelKitty Thanks. So except for those differences, a struct is exactly the same as a class?
It's better to think of the struct keyword as making a class. You cannot distinguish structs from classes because they are the same thing. That class exists at all is a historic error.
@nwp Okay. I noticed that in C Sharp unless I inherit from an instance of the same struct I have to initialize any fields and properties in the constructor. Is this the same in C++?
Kinda. You have to initialize things before you read from them, but it's not enforced by the language. You just get more or less screwed if you forget.
@nwp Thanks, but what I mean is even when I am not reading from an instance field or accessing it via an instance property, in C Sharp I still need to initialize all fields because all fields and properties in a C Sharp struct must be fully assigned before control is returned to the caller of the struct's constructor.