Programming Thread

Viewing single post

Started by the-pi-guy, Mar 13, 2016, 10:39 PM

previous topic - next topic

the-pi-guy

What's the difference between c++ and c#?
Haven't used C#, but from what I've seen it looks a lot like Java.

Some random person says this:
Quote
C# and Java discard C for C++. They take C++, throw away the pointer notation, and all variables become hidden pointers (except for the value types, primitive types, due to performance reasons). They add forcibly garbage collection, metadata to your classes, all the objects will be derived from a base class, called object or Object, which adds automatically virtual methods to objects, and they never compile to native code
++way seems foreign to me.
Same.  :P
I spent like half an hour, only to find the fix is putting it on the other side.  
I pretty much always write it like foo++, but this apparently needed to be written ++foo.  Not exactly sure why.