Template project for University of York ELE00032C Lab 4

Dependencies:   UoY-serial

Committer:
ajp109
Date:
Fri Dec 17 15:05:28 2021 +0000
Revision:
3:d1214b83bac7
Parent:
2:811646ac034f
Pull updates for 2022

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ajp109 0:77209603a6fe 1 #include "mbed.h"
ajp109 0:77209603a6fe 2
ajp109 1:8290f84652d1 3 struct IntVector {
ajp109 2:811646ac034f 4 int x;
ajp109 2:811646ac034f 5 int y;
ajp109 1:8290f84652d1 6 };
ajp109 1:8290f84652d1 7
ajp109 1:8290f84652d1 8 int main() {
ajp109 2:811646ac034f 9 IntVector p;
ajp109 2:811646ac034f 10
ajp109 2:811646ac034f 11 p.x = -3;
ajp109 2:811646ac034f 12 p.y = 1;
ajp109 2:811646ac034f 13
ajp109 2:811646ac034f 14 printf("(%d, %d)\r\n", p.x, p.y);
ajp109 2:811646ac034f 15
ajp109 2:811646ac034f 16 // Do nothing, forever...
ajp109 2:811646ac034f 17 while (true);
ajp109 0:77209603a6fe 18 }