strtok, used with a little care.
Type: Posts; User: Azuth
strtok, used with a little care.
Is you strcmp "." perhaps picking up the . in the filename and giving you issues?
Dude! This guy has 2 posts, he's used code tags, he's shown his code, he's made an effort and he's listened to the advice of others. Give him a bit of breathing space before you start picking on...
Or better yet, write program that checks if WMP is running. If it is and the user hasn't entered a password into your program have WMP shutdown, pop up a message telling the user that the house will...
Are you running a command prompt and then your program? Is the command prompt using command.com or cmd.exe?
http://www.cplusplus.com/
I think one of your problems may be defining your string thus char *stropt = "false"; you are making a string literal, that is a string that the compiler never expects to be changed. But I have to...
Edit your post with code to add code tags please. Given the scope of your project it may pay to focus on a single command, try to make the code for it yourself, then post your code and explain what...
Go read the FAQ. Nobody will do your work for you. You haven't told us what OS, or posted any code. Nobody could help you unless you put some more thought into your question.
http://cboard.cprogramming.com/showthread.php?t=45223
Scroll down until you see Quzah's post. I think it will shed some light on your problem.
It's still valid. "The C Programming Language - Kernighan & Ritchie". "C: The complete reference - Herbert Schildt"
printf("%s",temp);
Why do I imagine you have the Doom process management utility Quzah?
Oh, and seed rand outside your loop.
Do you have to choose the 50 random numbers randomly?
You could store 1000 numbers in an array and then pick numbers from the array by stepping through the array by a random amount; making the...
I see this comment so often, in reference to so many bad things. I know some teachers don't like to be shown up, but most will accept a different way of doing things quite happily (assuming it...
Umm, wouldn't you want argv[1]? Isn't argv[0] the name that invoked the program?
Like a lot of things, this is covered very well in the FAQ. Look at the third example, it generates numbers between whatever you ask (in this case 10 and 12), what about if you told it to get numbers...
Yup, and you don't wanna know what it looks like when denom hits 25 ! O_o
I think your recursive function is filling up the stack. It's not a question of < > 11, it's a question of hitting a number that causes your function to run so many times that if fills up the stack.
A few things to note:
- This thread should probably be under the Network / Device communication section.
- I assume from what you've said that you're only interested in a Windows answer, but...
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1048384537&id=1043284392
When all else fails, read the faq.
One idea would be to have two arrays, one for the numbers and one for the frequency of each number. As each number is entered you increment its frequency counter, when you're finished you simply look...
Honestly, some people are their own worst enemy!
"Well, I've got a way to start for you. Go read the Announcements, and go edit your post, adding in the needed code tags."
Make it easy for...
Your program could be doing things within a loop. One of the elements of the loop is checking for a key press. What does your programme do? OS?