locked
Bloodshed Dev-C can't run: RRS feed

  • Question

  • http://www.mediafire.com/download.php?cedjo0zfzwy try running a simple keygen on windows 7 >> it failed.
    but work on xp.
    who can know why.
    Windows 7 just say it has stopped working.
    -------------
    #include <stdio.h>
    #include <ctype.h>
    #include<conio.h>

    int main()
    {
    char* n,s[99];
    printf("Coded by joturako.Y!M:joturako_01_1993\n\n");
    printf("Enter your name:");
    scanf("%s",n);//Get your name for verifications
    printf("And the serial:");
    scanf("%s",s);//get serial
    int i,l=strlen(n);//let setup index i and length of Ur'name
    int cc,g=0;//ascii code of chr&good serial status
    char prefix[]="kgl-";//did U type it?
    i=0;
    for(i=0;i<=3;i++)
    {
    if(toascii(s[i])!=toascii(prefix[i])) {printf("Bad serial!");g=1;goto lres;}
    }
    int code=1,ni=0;//temp for calculation!
    char sr[]="sr";
    for(i=4,ni=0;ni<l-1;ni++,i++,i++)
    {
    cc=toascii(n[ni]);
    sprintf(sr,"%c%c",s[i],s[i+1]);
    code=atoi(sr);
    int rm=abs(remainder(25061993,cc));
    if ((code!=rm)&&(code!=rm*10)){printf("Hey, not this one!");g=1;goto lres;}
    }
    lres:
    if(g!=1)printf("Good!!!! Your passcode is w3lld0n3");
    getch();
    }
    -------------------

    Wednesday, July 15, 2009 1:41 AM

All replies

  • I had problem whenever executing c programs that had pointers....

    THis one works....

    #include <stdio.h>
    #include <ctype.h>
    #include<conio.h>

    int main()
    {
    char n[50],s[99];
    printf("Coded by joturako.Y!M:joturako_01_1993\n\n");
    printf("Enter your name:");
    scanf("%s",n);//Get your name for verifications
    printf("And the serial:");
    scanf("%s",s);//get serial6
    int i,l=strlen(n);//let setup index i and length of Ur'name
    int cc,g=0;//ascii code of chr&good serial status
    char prefix[]="kgl-";//did U type it?
    i=0;
    for(i=0;i<=3;i++)
    {
    if(toascii(s[i])!=toascii(prefix[i])) {printf("Bad serial!");g=1;goto lres;}
    }
    int code=1,ni=0;//temp for calculation!
    char sr[]="sr";
    for(i=4,ni=0;ni<l-1;ni++,i++,i++)
    {
    cc=toascii(n[ni]);
    sprintf(sr,"%c%c",s[i],s[i+1]);
    code=atoi(sr);
    int rm=abs(remainder(25061993,cc));
    if ((code!=rm)&&(code!=rm*10)){printf("Hey, not this one!");g=1;goto lres;}
    }
    lres:
    if(g!=1)printf("Good!!!! Your passcode is w3lld0n3");
    getch();
    }
    Wednesday, July 15, 2009 3:56 AM