
-----------------------------------
omni
Mon May 24, 2004 6:53 pm

Porting Turing -&gt; 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.

??

-----------------------------------
Catalyst
Mon May 24, 2004 8:37 pm


-----------------------------------
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
Tue May 25, 2004 7:40 pm


-----------------------------------
1. is there any speed difference? 
2. Are there any tutorials for NOOBs on pointers? I am just NoT getting pointers... Grrr...

-----------------------------------
Catalyst
Tue May 25, 2004 8:51 pm


-----------------------------------
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
Tue May 25, 2004 9:14 pm


-----------------------------------
A yes... I remember will my first adventure into pointers  :P . 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. [url=http://www.compsci.ca/v2/viewtopic.php?t=1747]The Pointer Syntax: By Rizzix

-----------------------------------
wtd
Tue May 25, 2004 10:34 pm


-----------------------------------
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.
