View Single Post
  #6   Spotlight this post!  
Unread 11-01-2012, 23:31
hdastwb's Avatar
hdastwb hdastwb is offline
Registered User
AKA: Daniel Woodworth
FRC #1677 (Quantum Ninjas)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Kalamazoo, MI
Posts: 8
hdastwb is an unknown quantity at this point
Re: System.out.println help

Actually, in most variants of C++ we've got things called "streams" that greatly enhance the readability and flexibility of code by use of the overloaded bitshift operator- for instance:
Code:
#include <iostream>

. . .

using namespace std;

. . .

cout << encoder1.Get() << endl;
Printf's really a C thing, but it is available in C++ if one needs fancier formatting or if one is allergic to the standard library for whatever reason. Then again, I can't speak for WindRiver/Diab- I still haven't gotten anything to run on that thing. It appears that they do have the simulator in this year's version (as opposed to last year where LabVIEW was the hands-down choice because of my team's large amount of code needing debugging and relative lack of robot), yet the installation of the C++ update seems to have failed probably due to the whole 32/64 bit thing. . .
Reply With Quote