![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Minor fixes
Fork of Coursework by
Diff: main.cpp
- Revision:
- 43:4ddc392dd0cc
- Parent:
- 42:4e0a96b52e65
--- a/main.cpp Wed May 03 13:30:38 2017 +0000 +++ b/main.cpp Thu May 04 12:55:16 2017 +0000 @@ -103,16 +103,13 @@ } //readers if(s1 =="READ"){//reads all records Sends a comma separated list of all measurements. Each record shall be separated with a \n newline. Each record shall be comma separated as follows: date, time, temperature, pressure, humidity - if (s2 == "ALL") - { + if (s2 == "ALL"){ //READ ALL } - else if (i1>0) - { + else if (i1>0){ //READ <n> n is i1 } - else - { + else{ printf("Are you trying to read something? try READ ALL or READ <n>"); } }