Search:

Type: Posts; User: Pioneer

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    17
    Views
    24,068

    And didn't I say twice that it was a bad idea?...

    And didn't I say twice that it was a bad idea? I'm not telling him to use it, just showing him how to do exactly what he asked, jeez.
  2. Replies
    17
    Views
    24,068

    You can get a really good completely free upgrade...

    You can get a really good completely free upgrade at http://www.borland.com/products/downloads/download_cbuilder.html#. It's the one I use and it's great. It's the second one on the list.
    yea, you...
  3. Replies
    17
    Views
    24,068

    i doubt it, Borland's latest compiler is 6, I use...

    i doubt it, Borland's latest compiler is 6, I use the free 5.5 compiler and it has windows.h.
  4. Replies
    17
    Views
    24,068

    If you don't have unistd.h or windows.h then you...

    If you don't have unistd.h or windows.h then you should get a newer compiler.
  5. Replies
    1
    Views
    1,860

    You can change a character to the number...

    You can change a character to the number equivalent by subtracting '0'.


    #include <stdio.h>

    add(char *nums){
    int sum=0;

    if (*nums=='A'){
    while (*++nums!='\0')
  6. Thread: HelpMePlease

    by Pioneer
    Replies
    6
    Views
    2,159

    Walk down the list until you find a Value greater...

    Walk down the list until you find a Value greater than the one you have, add the new Value before that.
  7. Replies
    43
    Views
    31,651

    The memory doesn't expand, it's already there and...

    The memory doesn't expand, it's already there and you overwrite it. The problem is that malloc leaves housekeeping bytes at the end of the block you get, if you write past how much you ask for then...
  8. Replies
    2
    Views
    2,251

    Use getch if you have it. #include ...

    Use getch if you have it.


    #include <stdio.h>
    #include <conio.h>

    main(){
    int key;

    printf("Hit a key: ");
  9. Replies
    1
    Views
    864

    Try to read something, if you hit EOF right away...

    Try to read something, if you hit EOF right away then print that the file is empty.
  10. Replies
    43
    Views
    31,651

    Yea, and when you write past the end of what you...

    Yea, and when you write past the end of what you have you'll probably write over the housekeeping stuff that free needs so that when you try to free it your program will crash.


    #include...
  11. Replies
    3
    Views
    1,053

    To make a list out of an array just build the...

    To make a list out of an array just build the list like normal and copy each part of the array into it.


    #include <stdio.h>
    #include <stdlib.h>

    typedef struct list{int stuff; struct list...
  12. I read the guidelines, the FAQs, the tutorials,...

    I read the guidelines, the FAQs, the tutorials, and lurked for a few days.
  13. Replies
    43
    Views
    31,651

    Here's a hint moi, 100 is an int, so sizeof(100)...

    Here's a hint moi, 100 is an int, so sizeof(100) is the same as sizeof(int).
  14. Thread: cases or ifs?

    by Pioneer
    Replies
    11
    Views
    1,772

    Depends on what you're trying to do.

    Depends on what you're trying to do.
  15. Replies
    3
    Views
    1,179

    if (name[0]==0){ do this }

    if (name[0]==0){
    do this
    }
  16. Replies
    6
    Views
    1,854

    strncpy doesn't add a NULL at the end unless...

    strncpy doesn't add a NULL at the end unless there's more room, strcat is better.
  17. Replies
    1
    Views
    2,106

    Don't add all that junk until you get the list...

    Don't add all that junk until you get the list working, everyone does that and it makes it harder. I fixed the list, but got rid of the stuff not relating to the list. You can add it back.

    ...
  18. Replies
    13
    Views
    1,398

    You need to use a string to read the number, then...

    You need to use a string to read the number, then convert it to a double when you've checked it for length.
  19. Replies
    9
    Views
    1,091

    That prints all .txt files from the current...

    That prints all .txt files from the current working directory. Change it to *.cpp and it'll only print .cpp files.
  20. Replies
    9
    Views
    1,091

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    main(){
    char direct[80];
    char command[84];

    command[0] = 0;
  21. Replies
    3
    Views
    974

    && comes before ||, == and != are the same,...

    && comes before ||, == and != are the same, there's no telling because you don't know what x is, and 9.
  22. Replies
    6
    Views
    1,923

    That's the accuracy of sleep, it means if you...

    That's the accuracy of sleep, it means if you pass it 1 it may not sleep for exactly 1 second. That has nothing to do with what argument you can pass to it.
  23. Replies
    6
    Views
    1,923

    When a float is converted to an int, everything...

    When a float is converted to an int, everything past the decimal is cut off. Since everything before the decimal is 0 and everything after is cut off, you have 0. sleep from dos.h is obsolete anyway,...
  24. Replies
    6
    Views
    1,923

    sleep takes an int argument, when you pass it .5...

    sleep takes an int argument, when you pass it .5 it actually gets 0 and doesn't sleep at all.
  25. Replies
    4
    Views
    1,707

    You can't, array indexes have to be int.

    You can't, array indexes have to be int.
Results 1 to 25 of 59
Page 1 of 3 1 2 3