Use a debugger to examine your code, memory, and the values of variables as the program runs. The Code::Blocks debugger shows windows that display variable values and memory contents. Use the controls in Code::Blocks to step through your code, examine variables and memory as each statement executes. Even if your code runs well, a debugger can help you understand how pointers and memory work.
- [Instructor] The Code Blocks debugger can help … track problems in your code but it's also a great … learning tool, especially for the meddlesome … topic of pointers. … First ensure that Code Blocks has a debugger installed. … Choose settings, debugger and then under default … you want to make sure that the file mentioned … is GDB 32 EXE, which is the bin folder … or bin directory, under the min GW compiler. … If not, use this button to browse … for that location and click okay, the debugger is ready. … Next you must start a new project and specify … that the debug build be created. … So let's go to a file, new project, … console application, C language, … and I'm going to name this after the exercise file. … They ensure that the debug configuration is selected. … I'm going to open up the preset main source code, … and get rid of it and paste in the source code … from the exercise file and then save it. … Now I'm just going to build and run … for the heck of it, see what this does. …
- Working with arrays
- Building a structure
- Creating an array of structures
- Testing characters
- Working with strings in C
- Using pointers to manipulate data
- Manipulating files
- Using command-line arguments
- Working with time functions
Skill Level Intermediate
1. Arrays and Structures
2. Characters and Strings
4. Files and the Operating System
5. The Interesting and Extraordinary
Next steps1m 52s
- 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.