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


0 Members and 2 Guests are viewing this topic.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: C++, Objective C, and C#
« Reply #15 on: September 12, 2011, 04:48:35 PM »
Quote
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;
}

That'll work perfectly, but most C programmers return 1, to check their main exited correctly, and the only argument you want main to take is command-line arguments. Its implied that it taking void otherwise.

both C++, an Objective-C are built onto C, but C++ is made  by Bell labratories (same as C) and Objective-C was made by NeXtStep (which was aquiered by apple.) C++ is universal, and although obj-C isn't currently supported on pc there is a group that has found ways to compile an obj-C program for use on a windows machine (without emulation), they're only part done with it though.

I think this is it: http://cocoaheads.byu.edu/resources/cocotron
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: C++, Objective C, and C#
« Reply #16 on: September 12, 2011, 05:46:49 PM »
Yeah I've used Cocotron. It works, little slow and buggy but works.

Plus it's a huge migraine to set up.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: C++, Objective C, and C#
« Reply #17 on: September 13, 2011, 05:57:10 PM »
I never tried it. Never got that far in development of an obj-C application worth that.
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: C++, Objective C, and C#
« Reply #18 on: October 14, 2011, 03:13:21 PM »
Hey this post saind there was a new post, but there wasn't weird.  ???
But I did re-read it and it brought up a question I have. Can C run on pc, and if not then why can C++?
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: C++, Objective C, and C#
« Reply #19 on: October 14, 2011, 05:35:52 PM »
C can. Though it depends on the frameworks. Some frameworks support only mac, others support only PC. It's cause PC and Mac do some things differently.

You could theoretically make an application for both Mac and PC, though you'd need to find universal frameworks or build your own and you'd need to compile your application in a way that'd run on both machines or compiler it twice, once for mac and other for pc.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: C++, Objective C, and C#
« Reply #20 on: October 14, 2011, 07:14:33 PM »
ah i see like the #ifdef statement. But ho do i know what frameworks are mac only, and such? And does Xcode contain the windows frameworks?

SO are C++ frameworks all universal frameworks?
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: C++, Objective C, and C#
« Reply #21 on: October 14, 2011, 07:49:19 PM »
I'm not sure about the frameworks working on mac and pc, but I do know that Xcode does not contain windows frameworks. I might contain frameworks that are compatible with windows though.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: C++, Objective C, and C#
« Reply #22 on: October 14, 2011, 10:20:14 PM »
cool, I don't think I'll use anything but Gm for computer game programming though, C++ for nD, and obj-C for iPhone. and C for operating systems, UNIX commands, and the like I would love to do :P
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: C++, Objective C, and C#
« Reply #23 on: December 04, 2011, 12:13:45 PM »
It does that to me when I haven't logged in for a while...
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: C++, Objective C, and C#
« Reply #24 on: December 04, 2011, 12:47:52 PM »
Hopefully that should be fixed now that the forums are updated.

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: C++, Objective C, and C#
« Reply #25 on: December 14, 2011, 09:39:09 PM »
how feasible is a translator C++ to Obj-C?
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: C++, Objective C, and C#
« Reply #26 on: December 14, 2011, 10:11:02 PM »
It would definitely be possible I suppose.