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

c++ arguments

Name: Anonymous 2006-09-30 22:23

i compile

int main(int argc, char* argv[]) {
if(argv[1]=="f"){
printf("f");
}
}

but when i run "aids.exe f" it doesnt printf("f")

i demand an explanation

Name: Anonymous 2006-10-01 1:30

ok, i think i can fix the crashing by checking if it even has an argument to compare. but how do i keep it from skipping the ifs?

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