Thanks guys. That really helped a lot! Solved it and everything worked beautifully!
Type: Posts; User: zbred
Thanks guys. That really helped a lot! Solved it and everything worked beautifully!
I think there is a problem with the way I am trying to assign the values in a .txt file, but I'm not exactly sure what the problem is. Whenever I go to this function, the program just ends. I think...
Alright, so I have a function where you set up the values for the array. Now I need to find a way to change them. So far it hasn't worked right.
void changegrades(double *grades, int count)...
I'm thinking it's a problem with the display in the showgrades function. And you are right, you getgrades should have been an int. I changed that. Thank you.
But I'm really not sure if it is the...
THANK you SO much! I got that now. Still having trouble showing the grades in the showgrades function.
getgrades(double *grades)
{
double temp;
system("cls");
printf("Enter...
Whoops. I'm sort of an idiot sometimes. This is what I got now that I changed it back. but I am having trouble at getting the loop to stop once 0 in put in.
for(count = 0; count < 100;...
Yeah, the teacher is a HUGE idiot. This whole assignment is so difficult.
I'm still trying to get the showgrades funtion to work... It still isn't working. This is the code for it I have so far....
I actually need it to be a double for the assignment.
Oh yeah... Duh. Thanks for that. Now for this next code, how would i get it so the showgrades function does these two things:
1. Only shows the amount of grades as the user enters in.
and 2. shows ...
I'm a beginner at this kind of stuff, so please bear with my heavy lack of understanding.
Is this at least on the right track? I don't quite understand how to begin to put input into the temp...
Ok, so now i have this, but how exactly am i supposed to get it to stop when 0 in inputted?
for(count = 0; count < 100; count++)
{
printf("Enter Grade or Press 0 to Exit:");
scanf("%lf%*c",...
I'm trying to write a program in which allows the user to input grades in one function, view the grades inputted in another, change the grade in another, and lastly view the grades based off of the...
Honestly, I don't know how to make the pointer ucp work.
That thread definitely helped me. Now i have the very first word capitalized, but I'm messing up getting each new word capitalized
void strcase(char description[])
{
int i;
for (i...
If you're talking about this code, then wouldn't it just lower case every letter?
void strcase(char description[])
{
int i;
for (i = 0; i < strlen(description); i++)
{
...
void strcase(char description[])
{
int i;
int len = strlen(description);
for (i = 0; i < len; i++)
{
description[i] = tolower(description[i]);
}
}
So far, I was able to get to strcase() funtion to work by changing it from a void to a char. I just need help at this point to get the words to look like this:
Blah Blah Blah
(and not like)
...
my bad
I'm trying to get to where the first letter of each word of the "description" is a capital letter while the rest is a lower case letter. So far, I'm not even able to successfully get every letter...