View Single Post
  #7   Spotlight this post!  
Unread 12-01-2016, 14:50
DamenStar DamenStar is offline
Registered User
FRC #1410
 
Join Date: Jan 2014
Location: Denver, CO
Posts: 4
DamenStar is an unknown quantity at this point
Re: C++ Code Not working

Normally the START_ROBOT_CLASS(Robot) statement should sit outside the main class normally in Robot.cpp. It should be located outside of any defined method:

Code:
#include "WPILib.h"
#include "Robot.h"

OI * Robot::oi = NULL;
DriveBase * Robot::drivebase = NULL;

void Robot::RobotInit(){
	oi = new OI();
	drivebase = new DriveBase();

}

START_ROBOT_CLASS(Robot);
It would be great if you post your code that you are having a problem with.

See ya in the bitstream

Last edited by DamenStar : 12-01-2016 at 17:07.