Okay, you have the printf function. It is telling you that startdist-self->dist is zero. You don't have to like that, but you have to deal with...
How many forums have you posted this on? Are you looking for a duplication of effort, or what?
It still needed code tags to preserve the formatting. I've done that for you, but I am not your mama. Please go ahead and read the indicated...
Please be polite enough to read the "Before you make a query" thread (upper right hand corner of the page). I refuse to read all that ugly...
What one can do and how much of that one should do aren't the same thing, of course. Polymorphism in C Portable Inheritance and Polymorphism in C
I'm reasonably sure that you are personally able to divide an 8-digit number by a 4-digit number. If not, you shouldn't be messing with...
In essence, abstraction means that one can treat problems in a way that are more convenient for the human brain to process, rather than in a ways...
This is not standard C notation for a function: The only use of a ':' in C is as a label identifier. A function (such as reverse ()) supposedly...
What language is this? It certainly isn't standard C. At any rate, you have a printf statement in the reverse function, what is it telling...
Unless self->dist-startdist or distance is a volatile variable, being changed independently, you are doing nothing to alter the while condition....
This is going to be somewhat OS dependent. What avenues have you explored (say, via Google) to date? Let me recommend the "Before you post a...
That's because C doesn't have references like C++. The & is strictly an address-of operator.
Dump the stdafx file(s). Turn off precompiled headers. The C header for stdio is stdio.h. The C++ header for stdio is cstdio (no .h).
JW, your solution corrupts variable a and relies on a specific method of auto-variable generation to prevent it from corrupting other memory...
You cannot declare a local variable in a function and return a pointer to it. The variable goes out of scope when the function returns. The...
The free homework store is two doors down. This is the free help store. We help those who break a sweat in an attempt to do their own work....
You have defined your add function to return a single char. You are then returning the dereferenced value of the string. The first byte of that...
Well, as you can see, my program concatenated char arrays to both a char array and a string. You can get a char array from the string by using...
When you compile the program, it generates an .exe file. Drag that anywhere you like and double-click on it to your heart's content. If you want...
Son, you're in a world of hurt. You really need to get some decent documentation. The declaration of strcat is as follows: char * strcat (...
Separate names with a comma.