[ create a new paste ] login | about

Link: http://codepad.org/r2pHTtuE    [ raw code | fork ]

C, pasted on Feb 12:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define numScores 3             // the number of test scores which a student will have

struct btreenode{
  int studentID;              // the ID number of the student at the current node
  float scores[3];            // the 3 test scores of the student
  float average;              // the average of the 3 test scores for the student
  struct btreenode *left;     // pointer to left side of the tree
  struct btreenode *right;    // pointer to right side of the tree
};

typedef struct btreenode *Node;

int main() {
  return 0;
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: