Join Dan Gookin for an in-depth discussion in this video Solution overview, part of Code Clinic: C.
- When I first saw this puzzle, I thought…about which tools I'd use to solve it.…Immediately, a shell script came to mind.…I'd use cURL to fetch the data,…cut out the relevant columns of numbers,…then paste them into another document.…Once I had the three columns of numbers,…I would write a program that mathematically manipulated…the columns and generated the results.…Of course, this isn't a shell scripting challenge,…so instead, I wrote a C program…that pulled in the raw data from the web,…and coordinated the three columns…of data into a single table; that table is sent…as a stream of text to the standard output device,…which is normally the display.…
I named that program fetch_data.…When it runs, it pulls in data from the three web pages…required for this chapter's problem.…The code stitches the data from…those three pages into a single table.…That table shows the date, time, air temperature,…and barometric pressure and wind speed.…If data from a specific date is desired,…then that date is typed after the command…
Dan introduces challenges and then provides an overview of his solutions in C. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Skill Level Beginner
1. Problem One: Exploring Lake Pend Oreille
2. Problem Two: Image Analysis
3. Problem Three: Eight Queens
4. Problem Four: Accessing Peripherals
5. Problem Five: Recursion and Directories
6. Problem Six: Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.