/* ********** WHAT LANGUAGE IS THIS?! ********* */ #using #include __gc public class bigobject { public: int x; bigobject(int a) // constructor { x = a; } // destructor not needed }; /* Not Legal: void changeobject(bigobject A) { A.x += 2; } */ /* Legal: */ void changeobject(bigobject *A) { A->x += 2; } int main() { // bigobject A(2); // not legal bigobject *A = new bigobject(2); // legal changeobject(A); cout << "A->x is now " << A->x << endl; // So it likes pointers. Let's try pointer arithmetics: // A++; // oops! not allowed! //delete(A); // memory deallocation not needed return 0; }