Computer Science Canada Porting Turing -> C or C++? |
Author: | omni [ 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. ?? |
Author: | Catalyst [ Mon May 24, 2004 8:37 pm ] |
Post 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. |
Author: | omni [ Tue May 25, 2004 7:40 pm ] |
Post subject: | |
1. is there any speed difference? 2. Are there any tutorials for NOOBs on pointers? I am just NoT getting pointers... Grrr... |
Author: | Catalyst [ Tue May 25, 2004 8:51 pm ] |
Post 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 |
Author: | guruguru [ Tue May 25, 2004 9:14 pm ] |
Post subject: | |
A yes... I remember will my first adventure into pointers ![]() |
Author: | wtd [ Tue May 25, 2004 10:34 pm ] |
Post 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. |