I suppose I could come up with a better way of terminating the loop than feof and make the code a bit more readable but for now the code is still a work in progress I definitely plan on fixing it up a little bit once I have the main components running , the only problem I have at the moment tho is the linker error related to the function CalSpeed , If I remove the function the program runs , however when I have it I get a linker error.

Is your program in just one source file? If not, the problem is probably that you did not compile and link all your source files, e.g., because you forgot to include them when running the compiler, or left them out of the build script or IDE project.

Originally Posted by Bjarne Stroustrup (2000-10-14)

I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.

Post the smallest and simplest program that you expect will compile but which demonstrates the error. At the moment, I could ask if say, you placed the prototype in the wrong place, but having to play this question/answer game in the absence of code that you have is unnecessarily tedious.

Originally Posted by Bjarne Stroustrup (2000-10-14)

I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.

Hmm... I cannot replicate your error. However, my compiler does complain about this line:

Code:

float Speed[];

Did you forget to specify the size of the array?

Originally Posted by Bjarne Stroustrup (2000-10-14)

I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.