Lesson 69: Applying directives to Class headers. Beginning Programming with Visual Studio C++ 2010

preview_player
Показать описание

This video shows you how to use the #ifndef directive to prevent the redefinition error

You can ask me questions that i was not clear on and i will answer ASAP. Please provide complements and likes if the vid was good OR constructive criticism if they could be better or just flat out suck. I WILL edit or remake videos if they are horrible in certain areas or if they just flat-out suck and will take your feedback into consideration.
Рекомендации по теме
Комментарии
Автор

I'm sure TheOrneryNerd learned this by now, but for those viewing this after and asking the same question

the "#pragma once" directive has issues with portability, ie: not all preprocessors will handle this properly

skullsneon
Автор

Why don't you just use #pragma once instead of #ifndef #define #endif?
is there any difference which is why you don't use it?

TheOrneryNerd
visit shbcf.ru