I created a Class C with a member variable: someString. And a function: string getString()
In my main() i have:
C object( "hello" );
C* pointer = &object;
cout << pointer->getString() << endl;
The problem is that it's giving me gibberish. I was wondering if i needed to add a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.