the rules of reference type and value type in C# in C++ as well.
For example in C#, classes are reference type and structs are value type. We do not have any pointers in C#, so we have classes(a reference) and structs(value). It makes sense that this approach is useful in C#. Therefore, I can use pointer for class type (reference type) and normal struct (value type). Is it a good approach?
In C#, we apply 90% classes instead of structs, in c++, do you use pointers more than normal class value types?
It's interesting for me too
Hmm.. it would be better to think C++ as something entirely different except the common language concepts. That way of thinking might (or might not) bring you trouble.
Обсуждают сегодня