View unanswered posts | View active topics It is currently Mon Nov 24, 2014 2:53 am






Reply to topic  [ 2 posts ] 
ROBOTC and Vector 
Author Message
Rookie

Joined: Thu May 01, 2014 6:49 am
Posts: 1
Post ROBOTC and Vector
Is there any way to use in ROBOTC compiler in file saved as file.cpp a vector class like this:
Code:
#include <vector>

task main()
{
    vector<int> v;
    v.pushBack(50);
    motor[motorB] = v[0];
}


If yes, what should I do?


Thu May 01, 2014 7:23 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3289
Location: Rotterdam, The Netherlands
Post Re: ROBOTC and Vector
No, it is not possible. ROBOTC does have a lot of C++-like features, but OO and templates aren't among those.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu May 01, 2014 8:58 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.