Search:

Type: Posts; User: Monster

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    6,072

    Use the Math.Round...

    Use the Math.Round method
  2. Replies
    4
    Views
    17,725

    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?a...

    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1043808026&id=1043284385
  3. Use the curses library: ...

    Use the curses library:

    http://www.apmaths.uwo.ca/~xli/ncurses.html
  4. Replies
    28
    Views
    2,834

    Have you tried any command line options? Try:...

    Have you tried any command line options?

    Try: plasma.exe -h or plasma.exe /h
  5. Replies
    5
    Views
    11,411

    Hi rotis23, I've created my own service last...

    Hi rotis23,

    I've created my own service last week and it's working fine. I also had the same problem but found out I had the services window still open.

    Here is my version of the un-install:
    ...
  6. Replies
    14
    Views
    2,111

    Try strdup (http://www.rt.com/man/strdup.3.html)...

    Try strdup

    and don't forget to free the memory...
  7. You're welcome. b.t.w. you should also do this...

    You're welcome.

    b.t.w. you should also do this (strcpy) for strings[1] and strings[2], otherwise you will get problems releasing the allocated memory
  8. strings[0]="Incorrect number of arguments for...

    strings[0]="Incorrect number of arguments for message ";
    Strings[0] is pointing to allocated space and you are changing the pointer to a const string. Try strcpy instead:

    strcpy(strings[0],...
  9. Replies
    4
    Views
    1,324

    FAQ...

    FAQ
  10. Replies
    7
    Views
    2,333

    Use the switch statement: switch(a) { ...

    Use the switch statement:

    switch(a)
    {
    case 0: printf("You have entered zero"); break;
    case 1: printf("You have entered one"); break;
    ...
    }
    or use else if:
  11. Thread: Smoke...?!

    by Monster
    Replies
    24
    Views
    5,573

    Poll: Not again... ...

    Not again...

    http://cboard.cprogramming.com/showthread.php?t=8703
    http://cboard.cprogramming.com/showthread.php?t=21642
    http://cboard.cprogramming.com/showthread.php?t=24280
  12. Replies
    16
    Views
    3,281

    This is not about making it fast, it's about...

    This is not about making it fast, it's about making your program solid. You only initialise the first 4 bytes in the array. This can be very dangerous!
  13. Replies
    16
    Views
    3,281

    I'm not sure what this is: BYTE ...

    I'm not sure what this is:


    BYTE defaultVal[MAX_PATH];
    ...
    * (BOOL *) &defaultVal = 0;
    If BOOL is an int, you're setting the first 4 values of the array to zero. Can you explain why?
    ...
  14. Replies
    7
    Views
    7,974

    I think I have to thank you Simon. You're the one...

    I think I have to thank you Simon. You're the one who solved it and gave me a lesson in regex. ;)
  15. Replies
    7
    Views
    7,974

    battersausage, you are right I made a mistake...

    battersausage, you are right

    I made a mistake with the square brackets. I thought it was: (A[ACGTN][ACGTN]G) * :D

    I don't see the reason to use nested character classes. I'm not even sure if...
  16. Replies
    7
    Views
    7,974

    Maybe this site will help you understand:...

    Maybe this site will help you understand: http://old.scriptmeridian.org/projects/regex/docs/metaCharacters/classes.html

    especially this line: If you want to include a "]" in a character list,...
  17. Replies
    7
    Views
    7,974

    I think it's for reading DNA strings: A ...

    I think it's for reading DNA strings:

    A
    followed by one single character A, C, G, T or N
    followed by one single character A, C, G, T or N
    followed by one single character G

    The above is...
  18. Replies
    2
    Views
    2,691

    Try: location ** make_map(int mapsizex, int...

    Try:

    location ** make_map(int mapsizex, int mapsizey)
    {
    location **map;
    ...
    return map;
    }

    int main(void)
  19. Replies
    4
    Views
    1,304

    do { printf("Enter the Quarter the sales took...

    do {
    printf("Enter the Quarter the sales took place(1-4): ");
    scanf("%d", &Quarter);
    } while(Quarter < 1 && Quarter>4);

    while(Quarter==1)
  20. Replies
    7
    Views
    1,976

    Did you include stat.h? #include

    Did you include stat.h?

    #include <sys/stat.h>
  21. Replies
    9
    Views
    3,526

    You are resetting the error variable each time...

    You are resetting the error variable each time you enter the loop.
    error = 0;
    Move this line up (must be before the for loop).

    b.t.w. please change [END CODE] to [/CODE]
  22. Replies
    14
    Views
    3,512

    Golden Gate floor lamp...

    Golden Gate floor lamp
    Light Tree
    Scintilla
    Lucifer
  23. Replies
    2
    Views
    1,727

    spawnvp: bad parameter

    Somehow the spawnvp function doesn't like the second parameter (>). Any ideas how to solve this?

    Thanks in advance,
    Monster
    #include <stdio.h>
    #include <string.h>
    #include <process.h>...
  24. Replies
    12
    Views
    2,088

    And another thing: if(ch>='A'&&ch

    And another thing:

    if(ch>='A'&&ch<='z')
    b[ch-'B']=1;
  25. Replies
    12
    Views
    2,088

    ch =getchar(); /* read character from input */...

    ch =getchar(); /* read character from input */
    scanf("%c", &ch); /* read character from input */
    Why the scanf? The getchar function already reads a character from input. Take a look again at...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4