Search:

Type: Posts; User: melodia

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,323

    Thank you both for replying to me! :-) See...

    Thank you both for replying to me! :-)

    See this is why I am confused I've tried using both || and && but neither work. I've ended up leaving the code as:


    }while( TTTboard[i]!=EMPTY &&...
  2. Replies
    10
    Views
    1,323

    I've tried all three ways and still the user can...

    I've tried all three ways and still the user can override any memory location in the array even if it already has an 'o' or 'x' in it. I cannot figure out why this loop control doesn't work. Help...
  3. Replies
    10
    Views
    1,323

    Thank you rags_to_riches Exactly! I was...

    Thank you rags_to_riches



    Exactly! I was wondering the same thing, they can't be the same, I thought about that but wasn't sure how I can make that work. Can I say:


    ...
  4. Replies
    10
    Views
    1,323

    Quzah, Thanks for the reply! I'm just not sure...

    Quzah,

    Thanks for the reply! I'm just not sure how that would effect the function, could you clarify?

    -melodia
  5. Replies
    10
    Views
    1,323

    I'm not sure I understand how that is wrong?...

    I'm not sure I understand how that is wrong? Doesn't it mean the same thing? Changing it to that wouldn't change the program when you compile it would it?

    min=<value<=max is what i essentially...
  6. Replies
    10
    Views
    1,323

    do while loop parameters are not working

    Hi I'm just wondering if anyone can tell me if there is something wrong with the way I am using the do while loop in my function GetIntInput().

    This is a part of my program for tic tac toe. It...
  7. Replies
    3
    Views
    1,682

    Thank you so much! It seems like its always...

    Thank you so much! It seems like its always something small that I repeatedly miss! I really appreciate it!
  8. Replies
    3
    Views
    1,682

    sorry here is the row is winner function that is called

    /*******************************************************************************
    ********************************************************************************...
  9. Replies
    3
    Views
    1,682

    exit loop not working properly

    Is this a valid do while loop?My program doesn't end when there is a match of three x's or 3 o's. I'm using a one dimensional array to store the values for the user and computers x's and o's for a...
  10. Thank you! Sorry for the late reply. I figured...

    Thank you! Sorry for the late reply. I figured out my issue and accidently forgot I posted this!
    I really appreciate the insight though! :-)
  11. Replies
    1
    Views
    1,498

    Debugging issues

    Hi there, I'm having two problems debugging my program I was wondering if anyone has any time for some input. It's a tic-tac-toe program and I'm having an odd issue with the third entry from the...
  12. Sorry, I was tired I figured out my own answer.

    By (double) rand() you are simply casting the value rand generated. I'm not sure why i even posted this, sorry it must be the end of the day.
  13. casting Rand () to generate double, float etc.

    Hi, I'm just wondering a few key things about rand(). By default rand() generates integer values but can you cast it to generate a double? For example if one wants to generate a random double between...
  14. Ensuring user input is integer value (newbie question)

    Hi,

    I'm working on a tic-tac-toe program and one of my modules needs to take an integer value from the user and confirm it was valid integer input and print an error message if it is wrong and...
  15. Replies
    3
    Views
    1,111

    Tried a thousand things still doesn't work

    Thank you Adak for replying to my post. I'm still having ridiculous troubles with this program. I've tried what feels like a million different loop structures and still it doesn't work. I don't want...
  16. Replies
    3
    Views
    1,111

    Ridiculous infinite loop

    Hi Everyone,

    I'm writing a blackjack game for c and my users turn works fine. The array I made has an index of 52. I'm "shuffling" the deck with srand and everything seems to work other than the...
  17. Replies
    5
    Views
    1,012

    Returning value with switch statements

    Thank you for the reply, I managed to fix the while loop at the top but now the ridiculous thing has a problem with the switch statement for "scoring the card"


    int Score_Card(int card)
    {
    ...
  18. Replies
    5
    Views
    1,012

    The only errors I am getting when compiling are...

    The only errors I am getting when compiling are in this function:


    int Users_Turn(int deck[])
    {
    int card;
    int totalscore=0;
    int score;
    int choice;
    do
  19. Replies
    5
    Views
    1,012

    /* function prototypes */ void clean (void);...

    /* function prototypes */
    void clean (void);
    char GetTestChoice();
    void Initialize_Deck(int deck[]);
    int Random_Number();
    void Shuffle_Deck(int deck[]);
    int Draw_One_Card(int deck[]);
    void...
  20. Replies
    5
    Views
    1,012

    Module programming with one dim. array

    Hi,

    I'm writing a program for blackjack and am using an array with and index of 53 the first 52 spaces are for the cards and the 53rd is for keeping track of how many cards are left in the...
  21. Replies
    3
    Views
    3,807

    Sorry, the second part I incorrectly explained,...

    Sorry, the second part I incorrectly explained, display card is void because it simply prints to the screen the cards suit and it's rank. Draw_One_Card is supposed to pass the 'card' to both...
  22. Replies
    3
    Views
    3,807

    Thank you so much! For some reason(maybe I've...

    Thank you so much! For some reason(maybe I've been staring at this for way too long) my head couldn't wrap it's way around this! I really really appreciate it!

    -Melodia
  23. Replies
    3
    Views
    3,807

    function prototype with array

    Hi everyone,

    So this is kind of a broad question , but my textbook is pretty terrible at explaining some fundamental things about modular programming. I'm writing a blackjack program and I have...
  24. Replies
    2
    Views
    1,367

    thanks for the input! I'm still fighting with...

    thanks for the input!

    I'm still fighting with this function. I'll figure it out though, stubborness usually pays off ;-)
  25. Replies
    7
    Views
    3,024

    Thank you! now to figure out the rest :-D

    Thank you!
    now to figure out the rest :-D
Results 1 to 25 of 30
Page 1 of 2 1 2