Jump to content

VEX: arrays fields in structs

Recommended Posts

Does anybody know if we can use arrays as fields in structs?


Something like this:

struct mydata
	float theta;
	float phi;
	vector vec;
	float values[];

Eventually I want to have an array xs of mydata with each xs.values being initialized to a particular size.

mydata xs[];
Edited by Macha

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now