Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

c kiddies, need your help

Name: Anonymous 2010-04-25 18:53

int main(){
    char data[2][5] = {"root", "pass"};
    char holder[5];
    printf("Please enter your username>");
    gets(holder);
    if(data[1]==holder){
    printf("Correct Username");
    };
    return 0;
}

The problem is even if I type the correct username in it will not pass to
if(data[1]==holder){

Name: Anonymous 2010-04-25 19:39

>>7
Getting these errors
/out:hw9.exe
hw9.obj
hw9.obj : error LNK2019: unresolved external symbol _getline referenced in funct
ion _main
hw9.exe : fatal error LNK1120: 1 unresolved externals

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List