Storing 144 true/false values in mySQL
#2

Your string theory took 1ms to execute, so I wouldn't stress too much about efficiency. I'm not a professional or anything, but it's worth trying.

pawn Код:
main() {
    new
        string[144],
        i=0,
        time = GetTickCount();

    while(i != sizeof(string)) {
        switch(random(2)) {
            case 0: {
                strcat(string, "0");
            }
            case 1: {
                strcat(string, "1");
            }
        }
        i++;
    }
    print(string);
    printf("Took %dms to execute", GetTickCount()-time);
}
Reply


Messages In This Thread
Storing 144 true/false values in mySQL - by MP2 - 30.06.2012, 03:13
Re: Storing 144 true/false values in mySQL - by ReneG - 30.06.2012, 03:36
Re: Storing 144 true/false values in mySQL - by Joe Staff - 30.06.2012, 03:44
Re: Storing 144 true/false values in mySQL - by MP2 - 30.06.2012, 04:04
Re: Storing 144 true/false values in mySQL - by Steven82 - 30.06.2012, 04:06
Re: Storing 144 true/false values in mySQL - by MP2 - 30.06.2012, 04:09
Re: Storing 144 true/false values in mySQL - by Joe Staff - 30.06.2012, 05:56

Forum Jump:


Users browsing this thread: 2 Guest(s)