Join Dan Gookin for an in-depth discussion in this video Failing the first time, part of Code Clinic: C.
- I've looked at EightQueens code before.…I can understand what's going on…but the code always seem so cryptic.…And it wasn't just single letter variable names…that bothered me.…It was trying to decipher exactly how the code worked.…Yes, that's one of the shortcomings of the C language.…So I began my EightQueens adventure by creating code…that operated on a character array, rows and columns.…First, to avoid the logic that comprises the bulk of a code,…I work on the main function…which examines the command line arguments.…
So the default of eight squares is set…when no arguments is specified.…And if the first argument is a value,…then that value is converted into an integer.…Otherwise, they help messages displayed.…10 options for brief in board are checked.…And the output mode variable is set accordingly.…I also wrote the show_board function…which displays the board in brief output.…I didn't even bothered to code the brief output.…For this first approach, I just wanted to see the board.…In fact, the show_board function isn't…
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.