The following C++ program compiles and runs as expected:
#include int main(int argc, char* argv[]) { int* test = new int[10]; for (
You need to learn the C# language. Although there are syntactic similarities to C/C++, it - like Java - has a very different approach.
In C#, objects behave, by default, as references. That is, you don't have to specify pointer referencing (&) and dereferencing (*) syntax.