Join Dan Gookin for an in-depth discussion in this video Reading, storing, sorting, and reporting, part of Code Clinic: C.
- For my solution I decided to read…and store JPEG file information…into a structure called, Images.…If the system hasn't defined a maximum…length for the path or filename,…the header file sets constants for both…PATH_MAX and NAME_MAX.…The BUFFSIZE constant,…represents the maximum string length…for an image caption.…Which can be up to 2,000 characters.…Also, note the UNIX definition.…If you're compiling under Windows,…change the definition to MSDOS,…and save that before compiling.…
To store the image structures,…I use the second and most terrifying…C Language construct after an array of pointers,…the Linked List.…The structure for that list is defined…in the header file as Images.…It stores the image name, filename extension,…caption, directory, and of course, a link…to the next item in the list.…The source code for PicNsort C…is divided into three parts.…The first part is handled in the main…function, which includes checking…for command line arguments.…
The second part is handled by the…finddir function, which recursively…
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
Q: I am unable to access the Lake Pend Oreille data from outside the U.S.
A: A static copy of this data is provided here for lynda.com members outside of the U.S.
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.