Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Porting Turing -> C or C++?
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
omni




PostPosted: Mon May 24, 2004 6:53 pm   Post subject: Porting Turing -> C or C++?

I plan on porting my 'shooters' game to C or C++. But which language is more appropriate? I know a little bit of each language, and both seem pretty similiar except the syntax. I am more familiar with C though.

??
Sponsor
Sponsor
Sponsor
sponsor
Catalyst




PostPosted: Mon May 24, 2004 8:37 pm   Post subject: (No subject)

C++ is an extension of C. It incorporates many more advanced features most notably classes (OOP) and templates. Almost all C code will compile in a C++ compiler so your best bet would be to use C++ then only use its advanced features if u want to.
omni




PostPosted: Tue May 25, 2004 7:40 pm   Post subject: (No subject)

1. is there any speed difference?
2. Are there any tutorials for NOOBs on pointers? I am just NoT getting pointers... Grrr...
Catalyst




PostPosted: Tue May 25, 2004 8:51 pm   Post subject: (No subject)

C is said to be slightly faster than c++ but i doubt you would ever notice the difference

http://cslibrary.stanford.edu/104/
is very simple and straightforward
guruguru




PostPosted: Tue May 25, 2004 9:14 pm   Post subject: (No subject)

A yes... I remember will my first adventure into pointers Razz . Don't worry, once you get them, you wont forget them. I remember looking through these forums a while back and rizzix posted a little speal on different types of pointers. The Pointer Syntax: By Rizzix
wtd




PostPosted: Tue May 25, 2004 10:34 pm   Post subject: (No subject)

Keep in mind that C++ is not strictly a superset of C. It changes some small things about how C works which can cause problems ompiling C programs with a C++ compiler.

Objective-C is a strict superset of C.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: