C++ Tutorial for Beginners Ep#10 - #define Macros and Macro Functions - SavvyNik

Channel:
Subscribers:
72,300
Published on ● Video Link: https://www.youtube.com/watch?v=M6Hd_EdP4JE



Category:
Tutorial
Duration: 8:01
22,448 views
631


C++ Tutorial for Beginners Ep#10 where we learn about the defining Macros/Macro Functions with the #define preprocessor directive in C++. Marcos can help user define various constants / functions that will be filled in by the preprocessor. They can help condense code into one-liners and allow the program to reuse already know function or values. C++ macros can be used with existing preprocessor directives.This C++ Tutorial is for Beginners is intended for learning the concepts of C++. Use Visual Studio Code or any text editor to follow along. Make sure to subscribe so you can follow the series.


When using preprocessor directives and C++ Macros you can define which portion of the code should be compiled. This is good for build/debug compilations. Where you might not want to include debug statements in the final build. A Macro with #ifdef / #ifndef could help you achieve this without having to write two separate files. Let's explore Macros and some of their uses together in this #define Macros and Macro Functions episode of C++ Tutorial for Beginners.

My Linux Cheat Sheet and 25 Page Checklist here:
📚 https://learn.savvynik.com

Share this free tool and support Small YouTubers
https://editbulk.com
(I made this tool to help creators)

Want more info/content?
https://savvynik.com

Useful Commands/Links:

Windows 10 Compiler Tools Setup - https://youtu.be/hCLIDph7-mU
Visual Studio Code - https://code.visualstudio.com/

Online Compilers:
https://www.onlinegdb.com/online_c++_compiler
http://cpp.sh/
https://repl.it/languages/cpp

Great List of Online C++ compilers:
https://arnemertz.github.io/online-compilers/#tldr

Windows Compiler Tools - GCC (GNU Compiler Collection) MinGW64
Linux Compiler Tools - Build-Essentials (GCC)

Name of extensions installed:
1. Code Runner
2. C/C++ Intellisense

#Linux #Programming #ComputerScience




Other Videos By SavvyNik


2020-10-24Veloren Online Play - New Magic Skills.. on Linux (Q&A)
2020-10-24Pop OS 20.10 Linux | NEW UPDATES! with Window Stacking | System 76
2020-10-23Ubuntu 20.10 Linux - Updates & Features
2020-10-22Genshin Impact Live - Continuing Gameplay and Quests. (Part 2)
2020-10-22File Checksum & Integrity Check on Linux - File Security [Hash SHA-1/256/384/512/MD5] (Ubuntu)
2020-10-21C++ Tutorial for Beginners Ep#12 - While & Do While Loops - SavvyNik
2020-10-20How to a Setup Static IP Address in Linux using Netplan - Beginners Guide
2020-10-19C++ Tutorial for Beginners Ep#11 - For Loops - SavvyNik
2020-10-19C++ Review #4 for Beginners - Macros & Switch Case | Find the Perimeter Program - SavvyNik
2020-10-17Genshin Impact Live - Gameplay - Start from the Beginning.
2020-10-15C++ Tutorial for Beginners Ep#10 - #define Macros and Macro Functions - SavvyNik
2020-10-13C++ Tutorial for Beginners Ep#9 - Switch Case - SavvyNik
2020-10-12FASTEST WAY - How to Take and Share a Screenshot on Windows 10
2020-10-11Veloren Online Play - Game Play... on Linux (Q&A)
2020-10-10C++ Review #3 for Beginners - Flow Control w/ Rock, Paper, Scissors - SavvyNik
2020-10-06C++ Tutorial for Beginners Ep#8 - Constants & Literals - SavvyNik
2020-10-03Veloren Online Play - New Skills and FPS Cap gone.. on Linux (Q&A)
2020-10-01How to Dual Boot Ubuntu 20.04 LTS and Windows 10 - UEFI Linux
2020-09-29C++ Tutorial for Beginners Ep#7 - if | else | else if statements (Conditional Statements) - SavvyNik
2020-09-26C++ Review #2 for Beginners - iostream, formatting, and more operators - SavvyNik
2020-09-25How to Create, Resize, or Extend a Linux Swap File | (Ubuntu)