How do i execute a .exe during runtime?
How do i execute a .exe during runtime?
pardon the double post. My browser didn't react quickly for DSL and i thought i didn't click the button properly
Oh, lemme guess - you've read the FAQ but lost the link to it
http://faq.cprogramming.com/cgi-bin/...&id=1043284392
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
this is more than likely found on the faq too, but how can i use arguments as a password ?
for instance-
i'd like to use a few args as a password for my project:
cmdline>programInC password anotherOne aFieForSomething
i tried accessing them through an if statement:
but it skipped the if and did nothing or just ran right into the brackets if the password was right or wrongCode:if (args[1] == "somePassWordIMightUse") { allowThis() }
pardon the double post. My browser didn't react quickly for DSL and i thought i didn't click the button properly
strcmp(args[1], "somePassWordIMightUse")
== wont work here
signature under construction
do i put that in the if statement?
pardon the double post. My browser didn't react quickly for DSL and i thought i didn't click the button properly
Yes.
http://www.acm.uiuc.edu/webmonkeys/b...14.html#strcmp
Returns zero if the first n bytes (or null terminated length) of str1 and str2 are equal. Returns less than zero or greater than zero if str1 is less than or greater than str2 respectively.