Quote:
Originally Posted by marijn1
okk guys i stored in array now
Code:
const int LevelM[136] = {0, 33, ***, ***, .... , 6251550417504 };
|
whatever language you're using shouldn't matter. why don't you simply do a read in from file?
Code:
#define MAX_LEVEL 139
...
...
int levelM[MAX_LEVEL], i=0;
char temp[100];
while (!feof(fileptr)){
if(i>=MAX_LEVEL)
break;
fgets(temp, 100, fileptr);
levelM[i++] = getExp(fgets);
}
fclose(fileptr);
i know very elementary c/c++, but i suppose that's what you should have done instead of hard coding it in. the codes up there are incomplete and kinda pseudo, dont laugh at me if i got something wrong. It's only meant to convey the idea.
The reason for doing this is that you never know if one day TQ decided to change the exp values; though unlikely, but it's always good to be prepared.