[c++] Exp list

01/20/2011 09:31 One Tap#16
okk guys i stored in array now

Code:
const int LevelM[136] = {0, 33, xxx, xxx, .... , 6251550417504 };
01/24/2011 03:33 ImFlamedCOD#17
Quote:
Originally Posted by Syst3m_W1z4rd View Post
Ya it does matter, I expected some c++ code, then it was just variables, but in the end it dosn't matter.
So you claim leach? You obviously don't know c++ so you expect it to be handed to you. This is the number one reason why i left elitepvpers.
01/24/2011 05:41 shitboi#18
Quote:
Originally Posted by marijn1 View Post
okk guys i stored in array now

Code:
const int LevelM[136] = {0, 33, xxx, xxx, .... , 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.
01/25/2011 12:38 messi100#19
Nice