Files
c0db/test/structs.c0
2015-04-06 01:21:41 -04:00

19 lines
228 B
Plaintext

#use <conio>
struct test {
int a;
string b;
int c;
};
int main() {
struct test* t = alloc(struct test);
t->a = 1;
t->b = "potato chip";
t->c = 23;
print(t->b);
printint(t->a);
printint(t->c);
return 0;
}