Thanks Tim
That helps with my compiler not driving me crazy. Now I have to find out why it is still not working.
Type: Posts; User: M_A_T_T
Thanks Tim
That helps with my compiler not driving me crazy. Now I have to find out why it is still not working.
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...
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...
I see now. Thanks a lot.
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...
Thank you good sir. It seems that I have forgotten the difference between 1 and l
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...
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:...
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?
...
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...
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() %...
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.
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,...
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...
That makes sense. Thanks a lot for your help.
Gotcha. Thanks!
With a little bit of revision, I have the following now:
sum = 0;
odd = 1;
Do
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 <...
So would it go like:
if (b < 0)
{
printf("-%gx +", b);
}
if (b > 0)
{
printf("%gx +", b);
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...
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...
Thank you!
Oh gotcha. Thanks!
Is there some way I can get it to be [minval, maxval]?
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...
Thank you sir!
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....