??? ?????? ??? ?? extern ??? ??
??? ?????? C ??????? ??? ???, ?? ??? ????? ??? ??? ?????. . ?? ??????? ??? ??? ????? ?? ??? ??? ?? ??? ?????? ???? ???. ??? extern ??? ???? ?????.
?? ???? ?? ???
?? ???? ?? ??? ?? extern ???? ?????? ??? ???? ??????? ??? ?????. ?? ?? ?? ?? ??????. ?? ?? ???? ?????? ????? ?? ??? ??? ???? ?????. ?? ?? ?? ??? ??? ????? ???? ??? ???? ??????? ????? ???? ?? ?? ??? ???? ?????? ?? ?????.
?:
??? ?????. ?? ?? ??:
// header.h template <typename T> void f() { /* Body */} // source1.cpp #include "header.h" void something1() { f<int>(); } // source2.cpp #include "header.h" extern template void f<int>(); void something2() { f<int>(); }
? ?? source2.cpp? extern ???? ??? ?????. ????? f
??? ???? ?? ???
?? ???? ???? extern ???? ??? ? ????. ??? ???? ?????. ?? ??? ????? ???? ??? ???? ?? ?????? ??? ?? ?????.
?:
// header.h template <typename T> class MyClass { /* Body */} // source1.cpp #include "header.h" MyClass<int> obj1; // source2.cpp #include "header.h" extern template class MyClass<int>; MyClass<int> obj2;
??? source2.cpp? extern ???? ??? ?????. MyClass
?? ??? ?? ??
- ?? ???? ?????? ??? ???? extern ???? ?????. ???? ????? ?? ?? ?????.
- ? ??? ?? ???, ??? ???, ???? ??? ?? ??.
- ?? ???? ??? ?? ????? ?? ??? ??? ?????? ?? ?? ?? ?? ???? ?? ????.
- ??? ??? ?? ???? ? ?? ?? extern ???? ?????. ???? ???? ??? ?? ??? ???? ??
? ??? C?? '?? ???'? ???? ?? ??? ?????? ??? ? ?? ??? ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











C? ???? ?? ??? ?? ???? ?? ???? ??? ??? ?? ???? ??????. 1) ?? ??? ?? ???? ?? ??? ??? ??? ??????. 2) ?? ??? ?????? ???? ?? ? ???? ?? ?? ??? ?????. ? ????? ????? ???? ?? ???? ??? ? ??? ?? ?? ? ?? ???? ??? ?????? ???????.

?, ?? ???? C? ??? ??, ?? ??? ? ??????. 1. ?? ???? ??? ??? ?? ?? ??? ?? ?? ??? ?????. 2. ????? ??? ?? ??? ?? ??? ??? ?? ? ??? ?????. 3. ??? ???? ?? ?? ???? ???? ?? ?? ??? ??? ????? ????? ???? ?????.

C? ???? ??? ???? ??? ?????? ? ?????. 1) ???? ???? ?? ??? ?? ??? ????? ?? ? ???? ?????. 2) ?? ?? ?? ??, ?? ?? ? ?? ???? ???????. 3) ???? ??? ??? ?? RAII ??? ???? ??? ???? ??????. 4) ?? ????? ?? ???? ???? ?? ? ??? ??? ???? ????????. 5) ?? ? ?? ??? ???? ?? ?? ???? ?? ? ? ????. 6) ??? ?? ???? ???? ???? ?? ???? ??????.

1) ?? ? ?? ?? ??, 2) ?? ??? ???? ?? ???? ????, 3) ?? ???? ?? ??? ?? ??? ?? ???? 4) ?? ??? ??? ?? ??? ???? ??? ??? ??????. ???? ???? ?? ??? ??? ??? ?? ??? ??? ???? ?? ???? ?? ??? ???? ? ????.

C? ? ?? ?? ??? ??? ??? : ??? ?? ??? ? ??? ???. 1. ??? ?? ???? ?? ??? ? ???? ?? ????? ?? ??? ????? ?? ???? ??? ? ????. 2. ??? ???? ?? ?? ? ??? ?? ???? ???? ??? ?? ?? ??? ?????.

C DestructorsCanleadToSeVeralCommonerrors.toaVoidthem : 1) ?? ?? ?? ?? ?? ?? ???

?, C? ???? ?? ?????. 1) ??? ??? ?? ?? ? ??? ???? ?????. 2) ?? ???? ???? ??? ????. 3) ?? ??? ????? ??? ?? ???? ??? ??? ? ??????. ?? ? ??? ?? ???? ???? ??? ?????? ??? ?? ?????.

C? ???? ??? ??? ? ??? ?? ????? ????. 1. ??? ???? ?? ??? ?? ????? ???? ??? ??? ???? ?? ? ? ????. 2. ??? ?? ???? ?? ??? ? ???? ?? ????, ??? ???? ?????.
