Join Bill Weinman for an in-depth discussion in this video My solution: Fetching the data, part of Code Clinic: C++.
- View Offline
- Exercise Files
…The process of fetching data from the lpo web site is fairly simple.…Make a connection to the web server, request the…associated page, and read the data from the network.…I'll discuss parsing and storing the data in a later lesson.…First, here in the browser, you'll notice that I have three tabs…open, one for each of air temperature, barometric pressure, and wind speed.…And this is the raw data that we'll be fetching from the LPO web site.…You'll notice that the URL is constructed from the date, so there's a folder for…a year and then within that folder there are several folders for each day of…the year, and within each of those…folders we have pages for air temperature, barometric…pressure, wind speed, and there's a few other…pages in each of these folders as well.…
You'll also notice that for each of these files, for…each of these pages, there is a list of data.…And each line in the list or each row of the list has three fields.…It has the, date, in the format of year, month,…day, with underscores between each of those parts of the date.…
Bill introduces challenges and provides an overview of his solutions in C++. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Visit other courses in the series to see how to solve the exact same challenges in languages like C#, Java, PHP, Python, and Ruby.
Skill Level Intermediate
Problem One: Exploring Lake Pend Oreille
Solution overview2m 51s
Problem Two: Image Analysis
Problem Three: Eight Queens
Problem Four: Accessing Peripherals
Problem Five: Recursion and Directories
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.