Name: ____________________________________________________ Alpha: _____________
Section: ________
Describe help received: _________________________________________________________________
See the bottom for how to submit your work.
Due: Before 0800 on next class day
struct Point
{
double x, y;
};
struct Trial
{
double stime, etime;
Point* ways;
int numways;
};
struct Subject
{
string name;
int id;
Trial pre, post;
};
Subject S;
Subject* A;
int i, j;
| expression | type |
S.id | |
A[i] | |
A.pre.ways[i][j] | |
S.post = A[i].pre; | |
A[i].post.ways | |
S.pre.ways[i] | |
A[i].id = S.ways[i].y | |
A[i].pre.ways[j].x | |
A[i].post.ways.x | |
S.pre.numways++ |
The program is supposed to work as follows:
Your task:
|
~/$ ./hw Filename: sections.txt > course EE301 EE301 1111 M1,TR12 EE301 2222 M2,WF12 EE301 5555 M5,TR56 > section 4040 SC112 4040 M4,WF4,T56 > course EE327 EE327 3333 MWF3,R34 > section 3333 EE327 3333 MWF3,R34 > quit |
|
Submit to the submission server (due: 0800 on the next class day)
~/bin/submit -c=IC210 -p=hw28 hw.cppBring to class