Search:

Type: Posts; User: SPOOK

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,198

    I'm in the GMT time zone and the time is correct...

    I'm in the GMT time zone and the time is correct for me, your guess about daylight saving is probably right but you would have thought someone would have taken that into account
  2. Replies
    6
    Views
    2,434

    Poll: No I still can't decide between them so I'm going...

    No I still can't decide between them so I'm going for Steve Martin. Man that guys funny, especially in lonely guy, and planes trains and automobiles
  3. Thread: for loops in C

    by SPOOK
    Replies
    1
    Views
    1,601

    Post some code so we can see what your doing.

    Post some code so we can see what your doing.
  4. Replies
    3
    Views
    930

    try this char id[20][5]; printf("Enter quit...

    try this

    char id[20][5];

    printf("Enter quit to finish");
    gets(id[x]);

    if(!strcmp(id[x], "quit"))
    break;
  5. Replies
    10
    Views
    16,288

    try ch = getc(stdin); or ch = getchar(); or...

    try
    ch = getc(stdin);
    or
    ch = getchar();
    or
    ch = getch();
    the last one needs <conio.h>
  6. Replies
    10
    Views
    16,288

    AAAAAAAAHHHH scanf(), I never use it, it's...

    AAAAAAAAHHHH
    scanf(), I never use it, it's dangerous(has a tendency to leave newline characters in the buffer) use getch() instead or for numeric data use gets() and then sscanf()
  7. Thread: sorting

    by SPOOK
    Replies
    5
    Views
    1,002

    A structure is a collection of related data...

    A structure is a collection of related data item's


    struct furniture {
    int id_num;
    int num_chair;
    int num_sofa;
    };

    furniture has become a data type same as any other and you now...
  8. Replies
    15
    Views
    4,477

    Maybe you should have an alternative contest....

    Maybe you should have an alternative contest.
    See who can write the most complex program for a simple problem or the slowest program for a problem or something different like that (just for fun).
  9. Thread: malloc (more)

    by SPOOK
    Replies
    6
    Views
    1,294

    MMMM Looks like i gotta eat some humble pie...

    MMMM
    Looks like i gotta eat some humble pie Salem. I did some searching and just found this:

    each application uses an area of memory called "the stack", which holds all local variables and...
  10. Replies
    5
    Views
    1,144

    You left it till the last day before your program...

    You left it till the last day before your program is due to learn the means to do it. That sounds like 'lazy' to me
  11. Thread: malloc (more)

    by SPOOK
    Replies
    6
    Views
    1,294

    Their scope may only be local to a particular...

    Their scope may only be local to a particular function or block of code but their memory is reserved from the begining of execution, therefore by declaring variables only where and when you need...
  12. Replies
    6
    Views
    2,434

    Poll: Definatley Bill Murray, ground hog day is great...

    Definatley Bill Murray, ground hog day is great film. Mind you national lampoons is pretty good also, so maybe Chevy AAAAAAAAAAAAAAHHHHHHHHHh
    I can't make up my mind
  13. Thread: malloc (more)

    by SPOOK
    Replies
    6
    Views
    1,294

    A C program uses four distinct regions of...

    A C program uses four distinct regions of memory.The first region is the memory that holds the programs executable code. The next region is memory where global variables are stored. The remaining two...
  14. try this, you only need 1 pointer #include...

    try this, you only need 1 pointer

    #include <stdio.h>

    int main()
    {
    double numarray[] = {14.83,19.24,0.84,1.98,3.47,0,0,0,0,0,827.39,632.85,471.38,0.04,4.83};
    double *numarray_ptr, total...
  15. Thread: header file

    by SPOOK
    Replies
    2
    Views
    998

    header file

    I have a header file which contains the following

    #define IDR_MYMENU 101
    #define IDI_MYICON 201

    #define ID_FILE_EXIT 9001
    #define ID_STUFF_GO 9002

    However when i compile the program I get...
  16. Replies
    3
    Views
    1,082

    You can find out how many structures are on your...

    You can find out how many structures are on your file by using ftell() to get the number of bytes in your file and then divide that by the size of the structure ie:

    fseek(pUser, 0L, SEEK_END); ...
  17. Replies
    14
    Views
    1,509

    I don't want to ask the obvious but you have...

    I don't want to ask the obvious but you have switched your printer on haven't you
    lol!!!
  18. Thread: need timer

    by SPOOK
    Replies
    6
    Views
    1,833

    the clock() function is accurate isnt it? ...

    the clock() function is accurate isnt it?

    clock_t start, stop;

    start = clock();

    for(x=0; x<1000000; x++);

    stop = clock();
  19. Replies
    14
    Views
    1,509

    Try replacing PRN with LPT1

    Try replacing PRN with LPT1
  20. Replies
    9
    Views
    3,326

    HHHHHHMMMM don't you need to use fread() to...

    HHHHHHMMMM

    don't you need to use fread() to read binary files?
  21. Replies
    6
    Views
    2,099

    andy bee check your message inbox

    andy bee

    check your message inbox
  22. Replies
    6
    Views
    2,099

    code

    could you edit your post using code tags to make the logic easier to follow as the lack of indentation makes your intentions unclear, also could you write a sentance to explain what you want the...
  23. Replies
    6
    Views
    2,099

    I think the test for a leap year should be more...

    I think the test for a leap year should be more like

    if(year%4 == 0 && year % 100 != 0 || year % 400 == 0)
    {
    return 1;
    }
    else
    return 0;
  24. Replies
    2
    Views
    2,537

    you can use size = ftell(fp); to do this you...

    you can use size = ftell(fp);

    to do this you must first position the file position indicator at the end of the file, this is done using
    fseek(fp, 0L, SEEK_END).

    the value returned by ftell is...
  25. Thread: read a drive

    by SPOOK
    Replies
    2
    Views
    823

    a call to system("dir"); will print drive...

    a call to

    system("dir");

    will print drive info
Results 1 to 25 of 29
Page 1 of 2 1 2