Search:

Type: Posts; User: SuperMiguel

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    50
    Views
    11,521

    What OS do you guys Use and why?

    What do you guys use as a main Operating System?
    and why?
  2. i meant which book u got for Data structures and...

    i meant which book u got for Data structures and algo
  3. Which one you got?

    Which one you got?
  4. That looks pretty good, before you did this, how...

    That looks pretty good, before you did this, how you actually learned c?
  5. Replies
    5
    Views
    1,711

    Where to find projects to work on?

    Where can i find open source projects written in C to work on?

    Is doing a linux from scratch a good exercise does it need programming?
  6. nice idea!

    nice idea!
  7. Can you guys recommend another game to make? i...

    Can you guys recommend another game to make? i done this one and a blackjack game..
    trying to learn C and it seems like games are a good way to do so
  8. yes they are the same, but dont know how else to...

    yes they are the same, but dont know how else to implement it
  9. cool didnt know that, ill will update =)

    cool didnt know that, ill will update =)
  10. is there a way to simply the AI of the computer...

    is there a way to simply the AI of the computer in this program? instead of using alot of ifs... i could use switch but it would still be bulky and repetitive.
  11. Updated previous code

    Updated previous code
  12. Ok made few small changes, still need to add more...

    Ok made few small changes, still need to add more to the computer AI (to play a bit more offensively instead of 100% def).., so far seems to be working fine



    #include <stdio.h>
    #include...
  13. goodplay = play(); while...

    goodplay = play();
    while (numbers[goodplay] == 'X' || numbers[goodplay] == 'O' || goodplay > 9)
  14. ok I have updated my code, i also added a very...

    ok I have updated my code, i also added a very simple(very) for the computer to play (will update soon)...
    note: I guess i can also simplify line 58 to 94 they are about the same



    #include...
  15. Ok make sense, will update code son will...

    Ok make sense, will update code son



    will try this as well
  16. Cool i like that better, i have changed it a bit...

    Cool i like that better, i have changed it a bit since %c takes a bit more space than the single letter/number so i removed few things. not sure what you mean by using 1-based array indices?
  17. Ok here is the code updated: #include...

    Ok here is the code updated:


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


    void print_layout(const char *numbers);
    void start_game(int players, char *numbers);
    int who_turn(int count);
  18. Cool thanks for your help, setup_array was a...

    Cool thanks for your help, setup_array was a mistake, i deleted it completely.. yes ill have to add some input verification to make sure a player cant play what other player did, also ill have to add...
  19. I know i havent implemented the 1 player mode,...

    I know i havent implemented the 1 player mode, but ill do that later..

    Im just learning C, and just want to know what i could do better
  20. Rate this code? what could i have done better?

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


    char setup_array();
    void print_layout(char *numbers);
    void start_game(int players, char *numbers);
    int who_turn(int count);
    int play();
    void...
  21. Replies
    5
    Views
    1,232

    nvm i kinda got it... struct Connection...

    nvm i kinda got it...



    struct Connection *p, test;
    struct Database db;
    p = &test;
    p->db = &db;
    p->db->rows[10].id = 10;
    printf("%d\n",p->db->rows[10].id);
  22. Replies
    5
    Views
    1,232

    How would u call a variable?? Rows[1].id = 6; ...

    How would u call a variable??
    Rows[1].id = 6;

    ???
  23. Replies
    5
    Views
    1,232

    Why create structs this way?

    So i been studying C, and got to structs and saw this example online:




    #define MAX_DATA 512
    #define MAX_ROWS 100

    struct Address {
    int id;
  24. Replies
    9
    Views
    1,181

    thxs

    thxs
  25. Replies
    9
    Views
    1,181

    Well i have one more question... If i use...

    Well i have one more question...

    If i use typedef.. for example:




    Typedef struct { int age;
    int SSN;
    int weight;
Results 1 to 25 of 59
Page 1 of 3 1 2 3