No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Okay, so pretty much I have to use structs to print out information about 4 dogs. However, I can only get the first dog, Smokey's information to print. Any advice on how to get the other four to print? #include <stdio.h> #include <stdlib.h> #include <string.h> #define pause system("pause") #define SIZE … |
|
I'm working on a horse race. So in my program, a random number is produced. This random number can be 1 through 100. If the random number is 1-35, then horse one will be the winner. If the random number is 36-47, then horse two will be the winner. It … |
|
So, I have to allow a user to enter numbers into an array. I then have to store that array in a text file and a binary file. How would I go about doing this? I have the array part of it down, it's just storing the array into the … |
|
Okay, so this is only a portion of my code, but what I have to do is have the user enter their weight, and then choose from options like eat cake, pizza, work out, and a few others. If they choose eat easy work out, they enter the number of … |
|
So for my program, I have to allow the user to enter a character then ask them how many of that character they want. I'm saving the character and the quantity into two different arrays. I've attached my code but when I go to display the array, it doesn't print … |
|
So I'm new to C and I'm having a problem with arrays. In my program, I let the user enter up to 5000 numerical values. I have the program set up in a menu system, so each time, the user can chose to enter a new number, or view what … |