Welcome! Log In Create A New Profile

Advanced

Array question

Posted by BLS 
BLS
Array question
December 31, 2008 02:10PM

Hi,

problem is that I've to translate some C++ code into W language ...
Don't care about the C++ stuff too much, it's just a list datatype which contains an array of unsigned ints

	// C++
	//std::list<std::vector<unsigned char> > lExtensions;

	// Because _vector is array of 0 unsigned int on 1 will not work, I wrap into a structure 
	
 	_vector is structure
 		_x is  array of 0 unsigned int on 1
 	END 	
 	
 	lExtensions is array of 0 _vector

	//lExtensions is array of 0,0 unsigned int on 1   // first idea

..... do stuff

	vExt is array of 0 unsigned int on 1
	
	// C++
	// lExtensions.push_back(vExt);

	ArrayAdd(lExtensions, vExt)  // Doh

Well I already had two glasses of champain so maybe I miss something smiling smiley However do you think that this translation is reasonable, or is there a better way ?

Thanks, good night, good fight, Bjoern

PS Have to use WX 12, WX 14 will make this pb obsolete
BLS
Re: Array question
December 31, 2008 02:15PM
Yeah, shit the C++ stuff is completely crippelt... seems that using >>>>> and <<<<<< is problematic ;;; However the C++ thingy uses a STL list wich is init. with vector

Bjoern
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: