Thread: C or C++
View Single Post
  #5   Spotlight this post!  
Unread 15-11-2006, 08:21
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: C or C++

Quote:
Originally Posted by Kevin Sevcik
Quote:
Originally Posted by Alan Anderson
Why? What particular itch would be scratched by having OO in your robot-programming toolkit?
Well it would let you use << instead of printf's. Heck you could overload << operator to output motor values or set the target of a PID loop or other mostly useless but amusing things, I suppose.
I was asking about Object Oriented, not Operator Overloading. My question is this: how would object-oriented programming be useful in programming a FIRST robot?

Modular programming is obviously a good thing, but I don't really see a good use for classes and inheritance and polymorphism and such.