Go to Post And those who DO know won't talk, even for Krispy Kremes. - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 02-02-2015, 16:03
RobHammann RobHammann is offline
Registered User
FRC #5143
 
Join Date: Jan 2015
Location: Grand Rapids MN
Posts: 8
RobHammann is an unknown quantity at this point
Re: Declaring DoubleSolonoid

Thanks, they do declare now, however...

Quote:
Originally Posted by one_each View Post
For classes, use the -> operator to access methods and fields from the pointer.

I really don't understand these pointers, when I try to set the solenoids using something like

grabSolenoid.set(DoubleSolenoid::kForward);

it says "request for member 'set' in '(((Robot*)this))->Robot::grabSolenoid', which is of pointer type 'DoubleSolenoid' (maybe you meant to use '->' ?)"

where do I put the ->?
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 14:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi