Search:

Type: Posts; User: TonyG

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    2,068

    No difference in there declaration. Just one of...

    No difference in there declaration. Just one of C's many faults.
  2. Replies
    2
    Views
    1,187

    Yes i did test it but getting a result and...

    Yes i did test it but getting a result and watching watchers doesn't necessarily explain the lines definition...
  3. Replies
    2
    Views
    1,187

    Simple loop question

    while ((x-1))
    {
    ++counter;
    x--;
    }


    can someone tell me what the condition is to exit the loop? Is it while x-1 not equal to 0?
  4. Replies
    3
    Views
    877

    Just so you know. I HATE C. Can't wait till i...

    Just so you know. I HATE C. Can't wait till i finish this semester.
  5. Replies
    3
    Views
    877

    reading a return string value?

    I have written a function to return a unique id for my linked list. I have run it through the debugger and checked the watcher that the values that are returned are correct.



    char*...
  6. Ahh that would be if i was just sitting here...

    Ahh that would be if i was just sitting here waiting for a response. Between posts i have been searching the program and help files to try and find my solution. I didn't start this thread without...
  7. Borland XE vers 15.0 If i had time to read the...

    Borland XE vers 15.0
    If i had time to read the manual i would (honest).
  8. Thats if i run it in a shell. What about if i hit...

    Thats if i run it in a shell. What about if i hit the run button in borlands.
  9. Yeh thats the code. What about the setup with...

    Yeh thats the code. What about the setup with Borlands?

    I have two files. menu.dat and submenu.dat that i want to import into my program via main arg parameters how do i set up borlands to do this.
  10. How do i setup Borlands to allow for main arg inport?

    One line question.
  11. Any chance that this could be caused by malloc at...

    Any chance that this could be caused by malloc at some point further in my code? Because that was the only thing i messed with before this happened.
  12. Debugger hangs at the line of code - menuInput =...

    Debugger hangs at the line of code - menuInput = fopen(menuFile, "r"); following the debugger line by line.
  13. Runs when i do a 'Build and Run' but not with the...

    Runs when i do a 'Build and Run' but not with the Debugger.
  14. CodeBlocks - my program crashes on file import (debugging).

    Hi, im using CodeBlocks and have only changed code that follows on from this section. My program runs up to a importing all data and some outputs.
    But if i run it in debug mode now. It crashes...
  15. Replies
    9
    Views
    1,465

    Just one of those things.. Kept banging my head...

    Just one of those things.. Kept banging my head for hrs working this out.
  16. Replies
    9
    Views
    1,465

    Actually I have change the plan for this process....

    Actually I have change the plan for this process. And now i am trying to generate a string that will increment as above C0001, C0002, C0003... every time it does a loop.
    This is the code i have at...
  17. Replies
    9
    Views
    1,465

    worked it out thanks.

    worked it out thanks.
  18. Replies
    4
    Views
    1,492

    Yeh thanks all. Was late and i was tired. Didn't...

    Yeh thanks all. Was late and i was tired. Didn't even have fclose() in the code.
  19. Replies
    8
    Views
    2,338

    I agree. Was only pointing out. Not criticizing....

    I agree. Was only pointing out. Not criticizing. Found another one. But if anyone looks on this later they can work that one out for themselves.
  20. Replies
    9
    Views
    1,465

    Trying to obtain int from inside a string.

    Having trouble reading an int from a string.

    categoryID is always of the format of <char>'000++' i.e. C0001 C0002...



    strncpy(temp, current->categoryID, ID_LEN);
    sprintf(temp,...
  21. Replies
    4
    Views
    1,492

    outputting to file?

    What am i missing? This creates a file but does not write to it.



    void foo (struct* current, char inputID) {

    FILE *stdoutReport;
    char *reportFile;

    if (current != NULL) {
  22. Replies
    3
    Views
    866

    Thank you for this. Not only does it help. But it...

    Thank you for this. Not only does it help. But it has given me an "A HA" moment.
  23. Replies
    3
    Views
    866

    Errors in this algorithm

    I have a recursive function for printed out some information from a Linked list node.



    void generateItemReport(ItemType* currentItem) {

    char token[MAX_DESC_LEN + 1];
    int n, count =...
  24. Replies
    8
    Views
    2,338

    Thank you for this it works a treat. One small...

    Thank you for this it works a treat. One small error needed to add +1 to count when ever adding the value of n to cater for the space.
  25. Replies
    8
    Views
    2,338

    Yeh just worked it out. Thanks for the post...

    Yeh just worked it out. Thanks for the post though.



    What alternative?
Results 1 to 25 of 53
Page 1 of 3 1 2 3