C 程序辅导

c struct and linked list

CIS 342        Homework 2       Points 100           Due: May 4th, 2015.

 

GENERAL INSTRUCTION:

 

  • In this homework you are expected to code in C language using Struct and linked list in UNIX environment.
  • Compilation of the necessary files are to be done in a makefile which should resolve all dependencies between headers and C source codes

 

SPECIFIC REQUIREMENT:

 

  1. Create students: …………………………………………………………………………………………………. (25 points)

 

  • Create a Struct called Student with the following attributes in a file named Student.c

Name (String)

ID (int)

GPA (double)

 

  • Also in the Student.c file define functions
  • setName (char* name[size])
  • getName()
  • setID(int)
  • getID()
  • setGPA(double GPA)
  • getGPA()