Search:

Type: Posts; User: ldblake

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    17,102

    Not really... he was pretty clear that he wanted...

    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 =...
  2. Replies
    21
    Views
    3,326

    One might offer you the same advice.

    One might offer you the same advice.
  3. Replies
    21
    Views
    3,326

    The address of the invitation, following the...

    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...
  4. Replies
    7
    Views
    17,102

    That's not what the OP asked for. He wants to...

    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;
  5. Replies
    21
    Views
    3,326

    Just follow the metaphor... X is the...

    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,...
  6. Replies
    21
    Views
    3,326

    ummmm... you do realize I was working through a...

    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...
  7. Replies
    21
    Views
    3,326

    When I first started messing with pointers I had...

    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...
  8. Replies
    4
    Views
    1,196

    The first problem is that you are using the same...

    The first problem is that you are using the same identifier twice. Try redoing your Structure like this...


    typedef struct tagFileNames{
    char FileName[20]
    }...
  9. Thread: compiler

    by ldblake
    Replies
    4
    Views
    1,350

    http://www.smorgasbordet.com/pellesc Windows...

    http://www.smorgasbordet.com/pellesc

    Windows based, nice IDE, lots of libraries... and free.
  10. Replies
    5
    Views
    1,947

    Safe bet... always take your compiler's...

    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...
  11. Replies
    5
    Views
    1,947

    In your example short and int are the same...

    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
    ...
Results 1 to 11 of 11