Add all the assignment code.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
58c6b1f81c
commit
cfe502c598
1277 changed files with 48709 additions and 1 deletions
12
hw5/hw5programs/tc_correct_struct_fptr.oat
Normal file
12
hw5/hw5programs/tc_correct_struct_fptr.oat
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
struct S {
|
||||
int s;
|
||||
int t;
|
||||
(int, int) -> int f
|
||||
}
|
||||
|
||||
int add(int x, int y) { return x + y; }
|
||||
|
||||
int program(int argc, string[] argv) {
|
||||
var x = new S { s = 3; t = 4; f = add };
|
||||
return x.f(x.s, x.t);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue