Good morning!
Though my l'il program seems to be working just fine, I get this warning when compiling from the command line:
"Warning C4028:formal parameter 1 different from declaration"
Header file:
Source:Code:#ifndef GRADES_H #define GRADES_H float calcAssignment (void); float calcExam (void); float calcTotal (float, float); void displayInfo (char* name); void studentName(char* name); void grades (void); typedef struct { char name[50]; int assignment[100]; int exam[100]; } StudentGrades; StudentGrades student = {0}; #endif
(shortened for brevity...)Code:void grades (void) { char firstlast[BUFSIZ] = {0}; DEBUG_PRINT("Entering grades function "); studentName(firstlast); displayInfo(firstlast); } void studentName(StudentGrades *student)//<<<-------- warning!! { DEBUG_PRINT("Entering studentName function "); printf ("\n\nPlease enter student's name:"); scanf ( "%[^'\n']", student ->name ); } void displayInfo (StudentGrades *student)// <<<------------ warning!! ...
What is causing this? Do I need more coffee? Golly it's late!![]()



LinkBack URL
About LinkBacks



