#include <stdio.h>

/* Terry Harvey CISC105 Section 21 TA Aaron*/

/* Sample struct program for class */

struct student{
    int id;
    char name[30];
    double gpa;
};

void printStudent(struct student temp);

int main(){

    struct student s1;
    struct student s2 = {2341, "wart", 9.5};
    s1.id = 1234;
    s1.gpa = 3.99;
    strcpy(s1.name, "spam");

    printStudent(s1);

    s2 = s1;

    /* s2.name = s1.name ??? NO NO NO */
    return 0;
}

void printStudent(struct student temp){
    
    printf("%s  %d  %lf\n", temp.name, temp.id, temp.gpa);

    return;
}
