Search:

Type: Posts; User: M_A_T_T

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,125

    Thanks Tim That helps with my compiler not...

    Thanks Tim

    That helps with my compiler not driving me crazy. Now I have to find out why it is still not working.
  2. Replies
    4
    Views
    1,125

    I'm sorry. What I am doing with this program is...

    I'm sorry. What I am doing with this program is randomly generating a sequence of 4 colors and having a user guess and depending on what they guess, the program should tell them if they have the...
  3. Replies
    4
    Views
    1,125

    Comparing Pointer and Integers?

    Hi I am trying to make a game where you have a secret code that is coded with colors like ROYG (red,orange,yellow,green) and I am having trouble when it tells you when you have a right color in the...
  4. Thread: Array Issues

    by M_A_T_T
    Replies
    2
    Views
    658

    I see now. Thanks a lot.

    I see now. Thanks a lot.
  5. Thread: Array Issues

    by M_A_T_T
    Replies
    2
    Views
    658

    Array Issues

    Hi there. I am making a program that asks a user to input 10 elements of an array and then displays the sum of the elements along with the average and how much each element is as a percent of the...
  6. Thread: Array Help!

    by M_A_T_T
    Replies
    2
    Views
    641

    Thank you good sir. It seems that I have...

    Thank you good sir. It seems that I have forgotten the difference between 1 and l
  7. Thread: Array Help!

    by M_A_T_T
    Replies
    2
    Views
    641

    Array Help!

    Hi I am doing a basic assignment dealing with arrays. When I call to the fourth element in the array which is 12.0 and try to display it, it prints 0.

    I don't see what I am doing wrong. Here is my...
  8. Thread: Loop Issue

    by M_A_T_T
    Replies
    11
    Views
    1,927

    Ahh thank you! I got it to pause on the computer...

    Ahh thank you! I got it to pause on the computer turn and ask the user to hit enter. Odd though when the user hits the enter key, this happens:


    You have rolled the following pair of dice:...
  9. Thread: Loop Issue

    by M_A_T_T
    Replies
    11
    Views
    1,927

    Okay so in the context of my problem, what I...

    Okay so in the context of my problem, what I should do is create a function that flushes input. Lets call it flush_input. Should I put this after my instructions that display the choices like so?

    ...
  10. Thread: Loop Issue

    by M_A_T_T
    Replies
    11
    Views
    1,927

    Thanks for all the help. I've cleared up all the...

    Thanks for all the help. I've cleared up all the warning messages which is great and I read the article you posted but I am having a difficult time understanding it. I ran the program and seen what...
  11. Thread: Loop Issue

    by M_A_T_T
    Replies
    11
    Views
    1,927

    Thank you for the reply. I guess it is hard...

    Thank you for the reply. I guess it is hard without the complete program to speculate. In my class we have not learned fgets or strtol so I will have to find another way. The
    a =("%i ", rand() %...
  12. Thread: Loop Issue

    by M_A_T_T
    Replies
    11
    Views
    1,927

    I used it to keep a running total of the score...

    I used it to keep a running total of the score for both players. It doesn't work now, and I will fix it soon. Another thing I have to fix after my loop issue.
  13. Thread: Loop Issue

    by M_A_T_T
    Replies
    11
    Views
    1,927

    Loop Issue

    Hello,

    I am making a program where a computer and player take turns rolling dice.

    There seems to be an issue somewhere in my loop where when the player selects from the possible dice choices,...
  14. Replies
    2
    Views
    2,859

    Help With Aligning

    Hello!

    I am currently in the process of creating a program that will output a calendar given the number of days in the month and the day the month starts on. A sample output should look something...
  15. Replies
    4
    Views
    1,337

    That makes sense. Thanks a lot for your help.

    That makes sense. Thanks a lot for your help.
  16. Replies
    4
    Views
    1,337

    Gotcha. Thanks! With a little bit of revision,...

    Gotcha. Thanks!

    With a little bit of revision, I have the following now:



    sum = 0;
    odd = 1;

    Do
  17. Replies
    4
    Views
    1,337

    Do For --> Do While

    Hello I had a basic question that I wanted to make sure I had right.

    Rewrite the following code using a do-while statement with no decisions in the loop body:



    sum = 0;
    for (odd = 1; odd <...
  18. Replies
    2
    Views
    987

    So would it go like: if (b < 0) {...

    So would it go like:


    if (b < 0)
    {
    printf("-%gx +", b);
    }
    if (b > 0)
    {
    printf("%gx +", b);
  19. Replies
    2
    Views
    987

    Help With Functions

    Hello I am creating a program that solves the quadratic equation ax^2 + bx +c.

    I have this program almost complete except the output of the equation in the function called display_quadratic. I...
  20. Thread: Dice Program

    by M_A_T_T
    Replies
    4
    Views
    1,720

    Dice Program

    Hello I am trying to make a program that "rolls" 5 dice randomly and computes the sum and mean. I have the program running, but it is not working the way I want it to.

    The problem I am guessing is...
  21. Replies
    4
    Views
    1,175

    Thank you!

    Thank you!
  22. Replies
    4
    Views
    1,175

    Oh gotcha. Thanks! Is there some way I can get...

    Oh gotcha. Thanks!

    Is there some way I can get it to be [minval, maxval]?
  23. Replies
    4
    Views
    1,175

    Generating random numbers between two inputs

    Hello,

    I am writing a program where a user enters two integers, a max and a min. From these two values, the program should generate 12 random numbers between those two values (inclusive). So if a...
  24. Replies
    2
    Views
    1,421

    Thank you sir!

    Thank you sir!
  25. Replies
    2
    Views
    1,421

    Multiple Functions Within A Program

    Hi I am getting an error on lines 31 and 36 about an expected identifier on my program that computes area and circumference. Is something wrong with my external functions outside of main? Thank you....
Results 1 to 25 of 28
Page 1 of 2 1 2