Topic:   C++, Objective C, and C#   (Read 27373 times)


0 Members and 1 Guest are viewing this topic.

WarHampster


  • GMG Extraordinaire

  • ***


  • Posts: 1501

  • The People's Moderator
    • Arcade of the Absurd
C++, Objective C, and C#
« on: July 05, 2009, 08:43:33 PM »
Can someone explain the differences between these languages? I know that C# was made by Microsoft and Objective C is used mostly by mac stuff, but what are the functional differences between them?

HarryCaray


  • GMG-er

  • **


  • Posts: 119

  • I love YaBB 1G - SP1!
Re: C++, Objective C, and C#
« Reply #1 on: July 05, 2009, 09:02:29 PM »
I've recently picked up C++ to prepare for college, to me its more of a data cruncher language.

GMG Hendo


  • GMG-er

  • **


  • Posts: 155

  • [WITTY TEXT GOES HERE]
Re: C++, Objective C, and C#
« Reply #2 on: July 06, 2009, 06:19:06 AM »
Objective-C is just what it sounds like. It's an object-oriented extension of ANSI C.
It's tough to learn at first (I would know, I'm just starting) but apparently once you get it, it's really easy.

GMG Tim


  • Administrator

  • GMG-er

  • *****


  • Posts: 465
Re: C++, Objective C, and C#
« Reply #3 on: July 06, 2009, 02:18:05 PM »
Quote
I've recently picked up C++ to prepare for college, to me its more of a data cruncher language.
Yup.

alias


  • Guest
Re: C++, Objective C, and C#
« Reply #4 on: July 10, 2009, 09:48:35 PM »
C++ is more number crunching oriented, C# is user event driven and objective C is more OOP than the others (although they are all OOP languages)

Telstar5


  • GMG-er

  • **


  • Posts: 371

  • The sun is up, the sky is blue...
Re: C++, Objective C, and C#
« Reply #5 on: August 04, 2009, 09:52:13 PM »
So where does that put C?

I recently got a book called "C by Dissection". It's really good, and there's a bit on C++ as well, which is useful for moving up.

I could just go straight to Cocoa, but I'm used to RealBasic. I ought to start with C to get my head around the data crunching stuff.

So far I have failed to produce one working application, even the hello world app... I think I left something out, but I'm not sure.


GMG Hendo


  • GMG-er

  • **


  • Posts: 155

  • [WITTY TEXT GOES HERE]
Re: C++, Objective C, and C#
« Reply #6 on: August 04, 2009, 11:29:48 PM »
My C is rusty but I believe something like this for Hello World



Code: [Select]
#include <stdio.h>
 
int main(void)
{
    printf("hello, world\\n");
    return 0;
}

WarHampster


  • GMG Extraordinaire

  • ***


  • Posts: 1501

  • The People's Moderator
    • Arcade of the Absurd
Re: C++, Objective C, and C#
« Reply #7 on: August 05, 2009, 01:25:02 AM »
<- That looks right to me.

c++ is

Code: [Select]
#include <iostream>
using namespace std;

int main ()
 {
 Â cout << "Hello world!\\n";
 Â return 0;
 }
« Last Edit: August 05, 2009, 01:26:23 AM by WarHampster »

GMG Tim


  • Administrator

  • GMG-er

  • *****


  • Posts: 465
Re: C++, Objective C, and C#
« Reply #8 on: August 07, 2009, 06:37:11 PM »
Start with C, and then move into object oriented stuff with C++. The benefit is that all C code is compatible with a C++ compiler, and to switch to C++ functions is just a minor syntax change.

j


  • GMG Newbie

  • *


  • Posts: 62
Re: C++, Objective C, and C#
« Reply #9 on: August 19, 2010, 10:19:24 AM »
iDevGames actually has a good explanation of the differences, with recommendations. Tim's answer is a great summary, but if you want a little more info:

http://www.idevgames.com/forums/thread-4383.html

WarHampster


  • GMG Extraordinaire

  • ***


  • Posts: 1501

  • The People's Moderator
    • Arcade of the Absurd
Re: C++, Objective C, and C#
« Reply #10 on: August 19, 2010, 02:59:40 PM »
You forgot to play your necromancy card, this thread is from around a year ago!

I subscribe to the "it's all about the final product" philosophy when designing programs, so I like to avoid C, C++, and Objective C. Micromanagement detracts from the larger picture, in my opinion, and the likes of C# and Java provide a nice balance between painstaking memory management and more traditional scripting languages like Python.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: C++, Objective C, and C#
« Reply #11 on: August 19, 2010, 04:10:51 PM »
Programming Objective C on the mac has a feature called Garbage Collector. Takes care of memory management so you don't have to. Though of course, even without it... memory management is still a breeze.
Advice from someone who has built a game in Java and Objective C...
Objective C causes less hair loss than Java.


-Gan

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: C++, Objective C, and C#
« Reply #12 on: August 19, 2010, 05:11:11 PM »
Quote
Advice from someone who has built a game in Java and Objective C...
Objective C causes less hair loss than Java.


-Gan
I can easily believe it. I went bald from reading Java For Dummies, and I didn't even have any hair to begin with! (I'd just finished Assembly for Smarties)
I survived the spammage of 2007

j


  • GMG Newbie

  • *


  • Posts: 62
Re: C++, Objective C, and C#
« Reply #13 on: August 19, 2010, 06:56:52 PM »
Quote
You forgot to play your necromancy card, this thread is from around a year ago!
Sorry, I just showed up for my yearly lurk. =P

I didn't notice the date, and there's a bug or something with the forums for me, where everything will light up NEW, even right now after I went through and marked all read earlier this morning. Oh well.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: C++, Objective C, and C#
« Reply #14 on: August 20, 2010, 05:26:45 AM »
That happens to me sometimes.
I survived the spammage of 2007