Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Example of header file c

//
// Created by merom on 4/28/2022.
//

#ifndef LIB7_28_04_2022_STUDENT_H
#define LIB7_28_04_2022_STUDENT_H
#define LIB7_28_04_2022_STUDENT_H

#define MAX_COURSES 100
#define NO_GRADE -1
typedef unsigned int Course ;
typedef unsigned int Grade;

typedef struct  Student Student;
void StudentDestroy(struct Student* student);
struct Student * StudentCreate(const char * name , const char * id);
void StudentSetGrade(struct Student * stud , Course course, Grade grade );
Grade StudentGetGrade(Student * stud, Grade grade);

#endif //LIB7_28_04_2022_STUDENT_H
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Example #header #file
ADD COMMENT
Topic
Name
6+7 =