From the course: Code Clinic: C

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution overview

Solution overview - C Tutorial

From the course: Code Clinic: C

Start my 1-month free trial

Solution overview

- [Instructor] The output from my first solution is admittedly, boring. When run, it pauses as it reads through the data file, looking for the matching time of day. Once found, records begin appearing one line at a time, each time stamp in the file matching the current time of day. And it just keeps running until you press control C to break it. I tried shortening some of the names so that the output fits neatly on a 80 column terminal window. Then again, this output isn't supposed to be pretty, so I kept all the labels long and unabbreviated. The end curses version is far more visual stimulating and more in line with what I believe is the dashboard part of this assignment. The time of day scrolls through the box on the left with the current time highlighted. The engine efficiency thermometer hops up and down depending on the percentage value. And the three color values appear in their colors, the numbers changing with every tick of the pulsometer. I didn't add any controls, mostly…

Contents