Commit 9b2d1d4f authored by Alan Marchiori's avatar Alan Marchiori
Browse files

lab5 in class

parent db60981d
......@@ -62,13 +62,13 @@ void loop() {
lcd.clear();
lcd.setCursor(0,0);
//sprintf (line1, "%d.%02d", (int)amount, (int)(100*amount) % 100);
lcd.write(line1);
lcd.setCursor(0,1);
lcd.setCursor(0,1);
//sprintf (line2, "%d, %d, %d, %d", c->quarters, c->dimes, c->nickels, c->pennies);
lcd.write(line2);
free(c);
amount += 0.01;
......
#include <stdio.h>
#include <string.h>
int main(void)
{
char *str = "csci206";
int i = 42;
int *pi = &i;
strcat(str, "is cool");
pi[5] = 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment