Search:

Type: Posts; User: zuiplap

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,181

    void TransformDigitsToLetters(int n,char str[])...

    void TransformDigitsToLetters(int n,char str[])
    {
    /* take the first 2 digits (and save them as 14 */
    char* test[2];
    int digits;

    /* "take first 2 digits", actually the...
  2. Replies
    5
    Views
    1,286

    :) ok, only ignore them when you know there is...

    :)

    ok, only ignore them when you know there is no harm :)
    here you can ignore the warning: here i > 0 always so there is no problem ignoring this warning..

    i was only guessing strlen returned...
  3. Thread: menu help

    by zuiplap
    Replies
    4
    Views
    1,214

    hope this helps.. /*function prototypes...

    hope this helps..




    /*function prototypes */
    void menu(void);
    void game(void);

    int main(void)
  4. Replies
    5
    Views
    1,286

    warnings are warning.. just ignore them.. :) ...

    warnings are warning.. just ignore them.. :)

    but if you want an explanation:

    'i' probably is of the type signed int..

    because strlen always returns a positive value, strlen returns an...
  5. double hello[]={-1,2,4,-6}; for(i=0; i

    double hello[]={-1,2,4,-6};

    for(i=0; i<=3; i++)
    {
    if(hello[i] < 0)
    xxx -= hello[i]; /* ex: x = x - (-1) */
    else
    xxx += hello[i]; /* ex: x = x + 2 */...
  6. Thread: if problem

    by zuiplap
    Replies
    5
    Views
    1,004

    you can always use: exit(0); this will end the...

    you can always use: exit(0);
    this will end the program immediatly



    if(grid[x][y]) { /* if mine */
    printf("Sorry You Hit a Mine Game Over\n");
    exit(0);
    } else {
    ...
  7. Replies
    11
    Views
    1,117

    hope this helps ;) if you have any questions,...

    hope this helps ;)

    if you have any questions, shoot.. (my C is better than my English so, if i was unclear..)



    #include <stdio.h>

    #define MAX 12
    #define FALSE 0
  8. Replies
    2
    Views
    1,934

    so you would like to add "a&15" to ...

    so you would like to add "a&15" to (15-*ptemp&15)+1..

    & has a lower priorty than + so you should use

    (a & 15) + ((15 - *ptemp & 15) + 1) >= 16

    which should work.. (i think)
    ...
  9. Replies
    3
    Views
    1,196

    well, i just don't get it to work.. This is what...

    well, i just don't get it to work..
    This is what i did:
    1) installed DJGPP -> this is working fine

    2) unzipped above file (GTK)
    2.1) -> i got 5 directories: bin, include, lib, man,share
    ...
  10. Replies
    3
    Views
    1,196

    Need Help Installing GTK+

    I'd like to install GTK+, but i can`t for some reason..

    I'm using DJGPP (www.delorie.com) and WINDOWS XP..

    I've downloaded these two files:
    1) GTK+...
  11. Replies
    4
    Views
    1,858

    There are several ways of sorting arrays.. ...

    There are several ways of sorting arrays..

    I'll post one here, so you'll have an idea:



    #include <stdio.h>

    #define MAX 10
Results 1 to 11 of 11