David Ross
/
NEW_LAB2_A
changed error
Diff: Lab2a.cpp
- Revision:
- 0:f7171b5b118b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Lab2a.cpp Fri Sep 18 14:29:32 2020 +0000 @@ -0,0 +1,25 @@ +/* + Title: Program to generate output to the PC screen + Author: Your NAME, STUDENT_ID, MCO455 Lab Section + Date: Today's Date + Description: This program will take characters from the keyboard and + continually send them to the screen. You can use ANSI + ESCAPE sequences to position the cursor, clear the + screen, and change screen foreground and background + colours. +*/ +#define "mbed.h" + +int main(void) +{ + unsigned char input; + + for(;;) + { + input=getc(stdin); // get char and put into variable input + // if(input == 0x0d) // if input is <RETURN> + // putc(0x0a,stdout); // output a <LINE FEED> + + + } +}