Why can't you just use something like this:
Code:
char* getWord(int wordIndex){
static char dict[749][11]={"account","act","additon","adjustment","bowwow","bowwow", /* 0-5 */
"bowwow","bowwow","bowwow","bowwow","bowwow","bowwow","bowwow","bowwow", /* 6-13 */};
return dict[wordIndex];
}
#include <iostream.h>
using namespace std;
int main(){
cout<<getWord(1);
cin.get();
return 0;
}
The only problem with it is that when you have some words missing from the middle, you'd have to do many ,"" things
...and it's quite messy...