David Ross
/
NEW_LAB2_A
changed error
Lab2a.cpp
- Committer:
- DavidElmoRoss
- Date:
- 2020-09-18
- Revision:
- 0:f7171b5b118b
File content as of revision 0:f7171b5b118b:
/* 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> } }