Answers for "example of header file in c"

C
0

example of header file in c

#ifndef SET_H
#define SET_H 
#include <stdbool.h>
typedef int* Element;
typedef struct set_rec* Set;
Set SetCreate();
void SetDestroy(Set); 
void SetAdd(Set, const Element); 
void SetRemove(const Set, const Element); 
bool SetIsIn(const Set, const Element);
bool SetIsEmpty(const Set);
const Element SetNext(Set);
const Element SetFirst(Set);
#endif
Posted by: Guest on April-28-2022
0

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
Posted by: Guest on April-28-2022

Code answers related to "C"

Browse Popular Code Answers by Language