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.
Code:
void changegrades(double *grades, int count)
{
int i, x;
system("cls");
printf("Change Grades \n\n");
printf("Enter the position of the Grade you want to change (or 0 to quit):");
scanf("%d%*c", &i);
i = count;
if (count == 0)
{
printf("\n\nPress Enter to Continue");
}
else
{
printf("Enter the New Grade: ");
scanf("%d", &x);
x = grades[count-1];
printf("\nNew Grade is %d.", grades[i]);
}
getchar();
}