View Single Post
  #2   Spotlight this post!  
Unread 02-02-2008, 13:15
xrabohrok's Avatar
xrabohrok xrabohrok is offline
hunter of errors
FRC #1208 (The Metool Brigade)
Team Role: Programmer
 
Join Date: Jan 2006
Location: O'Fallon
Posts: 62
xrabohrok is an unknown quantity at this point
Re: p1_sw_aux data type

Quote:
Originally Posted by wireties View Post
"C++ is a superset of C thus everything that works in C will work in C++. Your code looks OK."

This isn't entirely true. C++ is a modified version of C that incorporates true object oriented programming into it. There are also a few fundamental syntax changes (cout<<""; instead of printf(""), as one example) that may play havoc with direct conversions of code. If you are coming from C++ to C, the differences are easy and trivial enough to learn C.
__________________
"It's programming's fault" may be a viable excuse for just about everything, except the robot falling apart.

It will 'cause it can!

constants aren't. variables won't.