MENU

Fun & Interesting

Your Second Day in C (Understand .h header and .c source files) - Crash Course in C Programming

Mike Shah 11,482 3 years ago
Video Not Working? Fix It Now

►C Programming playlist: https://www.youtube.com/playlist?list=PLvv0ScY6vfd8M-Mi_Vyrg7KgISTW3Sklt ►Find full courses on: https://courses.mshah.io/ ►Join as member to get perks: https://www.youtube.com/channel/UCA64pZbN5Mz5NxC3SO4qpDg/join ►Lesson Description: In this series of lessons I provide you with a crash course in the C programming language. In this lesson I will show you the difference between a .h file, and a .c file. This will lead us into a small discussion and demonstration of how to structure a C project. We'll also be reviewing several of the topics from the first video in the playlist linked above. 00:00 Introduction 00:40 Discussion of header versus implementation files 3:40 Creating a main.c file. 4:00 The vector struct that we are creating. 5:20 The header and implementation for our math library 7:00 Sketching a vector 'Add' function. 8:45 Including files is a copy and paste by the preprocessor 10:20 Header Guards discussion and usage 11:40 Implementing the functions in our header file in our .c file. 12:40 Refactoring our 'Add' Function 15:00 const parameters 15:57 Using our Math Library 17:00 Different ways to include files 20:25 Successfully running our program. 20:53 Review of what we have done. 24:14 Review of compiling multiple files in C 26:00 Conclusion and wrap up ►Please like and subscribe to help the channel! ►YouTube Channel: https://www.youtube.com/c/MikeShah ►Join our free community: https://courses.mshah.io/communities/Q29tbXVuaXR5LTI3MzAz

Comment