I've got a list of 10 null terminated arrays, I need to randomly select one of them. I can't seem to figure out a method to randomly select a character array. Unless there is a easier way of doing it? I'm not allowed to use the string data type. ¬¬
I've got a list of 10 null terminated arrays, I need to randomly select one of them. I can't seem to figure out a method to randomly select a character array. Unless there is a easier way of doing it? I'm not allowed to use the string data type. ¬¬
Make the list into an array, then randomly choose an index of that array with http://www.cplusplus.com/reference/c.../cstdlib/rand/ .
Could I have an array of arrays? >.< Since I can't use the string data type, all my strings are in arrays already.
do a multidimentional array?
Guides:Lape Basics ---Multi-Dimensional Arrays --- Dung Guide , Scripts:Cooking guilder --- Enslaved Fletcher --- EnslavedHumidity
char[][] arr;
I've heard of them, I'll have a look into it. Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)