Not really... he was pretty clear that he wanted a decrementing value where 85 = 100%, 84 = 98% and so on. I just had the thing print it out for him.
If he's looking for formulas...
percent =...
Type: Posts; User: ldblake
Not really... he was pretty clear that he wanted a decrementing value where 85 = 100%, 84 = 98% and so on. I just had the thing print it out for him.
If he's looking for formulas...
percent =...
One might offer you the same advice.
The address of the invitation, following the metaphor is the location of X ... &X.
It's only confusing if you're silly enough to try and compile a metaphor. :rolleyes: (hint: source code works...
That's not what the OP asked for.
He wants to count down from 85 by ones, and 100% by 2s until he hits 0%.
#include <stdio.h>
int main(void)
{ int percent = 100;
Just follow the metaphor...
X is the invitation, which points to the party ... int *X
The question in the second part was "Where is the invitation" .. in the metaphor X is the invitation,...
ummmm... you do realize I was working through a metaphor, not trying to write working code.
What confuses most students is seeing their teachers argue. What I said was NOT incorrect and reversing...
When I first started messing with pointers I had one heck of a time getting my head around them. A friend helped me out this way...
"Ok, you're invited to a party.... How do you know where to...
The first problem is that you are using the same identifier twice. Try redoing your Structure like this...
typedef struct tagFileNames{
char FileName[20]
}...
http://www.smorgasbordet.com/pellesc
Windows based, nice IDE, lots of libraries... and free.
Safe bet... always take your compiler's documetation as more meaningful than some generic (and probably old) programming tutor.
As someone else mentioned, the definitions do vary from one...
In your example short and int are the same thing. This isn't always true. In some systems (particularly windows) int is a 32 bit value.
short is guaranteed to be 16 bits as is unsigned short
...