I fixed my problem, I honestly think it was working and because of all the password verification stuff I have getting into the program I took it as executing, just a stressed out mistake.
Type: Posts; User: xIcyx
I fixed my problem, I honestly think it was working and because of all the password verification stuff I have getting into the program I took it as executing, just a stressed out mistake.
Thank you for the input carrotcake.
This is what I'm leaning twoards, I was writing my first reply while you posted so did not see it first.
if(IF)
{
fseek (IF, 0, SEEK_END);...
I've only used feof() in the form of a !feof(), I just tried it with the following code, and it didn't execute the code even though the file was empty. Any ideas?
if(feof(IF))
{
...
Hello:
I'm in a small bind. In my program I'm opening a file that may be empty. I can write the code around my problem of detecting whether or not a file is empty by setting my arrays to none...
Thank you :)
Can anyone tell me how to put a date and time stamp when writing to a file in C? I searched brefily but was unsucessful finding information on the subject.
I'm trying to run this for loop. I've included the entire code to try to solve the problem. I'm really not understanding why this is not looping. When I enter an invalid selection it should make...
I'm kind of stuck again guys... How exactly do I use arctan (tan^-1) in C.
I tried:
direction = arctan(totaly/totalx);
However, the compiler does not recognize arctan. What do I use instead...
I'll use this:
radians = angle * PI/180;
Thank you for your help guys.
That explains it, as I was writing this post I realized it may have to be in radians.... I'm going to have to convert it but honestly I don't remember how to convert degrees to radians. I know that...
I'm writing a program using cos, sin and arctan. However, Whenever the program computes something it fails at doing cos and sin properly. I have not written it to the arctan stage yet.
Here is...
That's a sign I need to go to sleep. Thank you... all I was missing was the %.
As for the "==" I declared count = 0; therefor i'm saying that when count is equal to 0 run the loop. May not be...
Logicially I think it's possible to have a scanf in a for loop. Am I wrong?
Here is the code that's ignoring the loop, I took out the parts that are not required to answer this question. When...