C++ ??? "??: ???? ??? ???? ????" ??? ?????
C++ ????? ???? ?? ?? ???? ??? ?? ? ??? "??: ???? ??? ???? ????"???. ? ??? ????? ???? ???? ??? ? ?????. ? ????? ? ??? ??? ???? ? ?? ?? ??? ?????.
?? ? ??? ???? ?? ??? ???????.
#include <iostream> class A; class B { public: void foo(A& a) { std::cout << "foo function" << std::endl; } }; class A { public: void bar(B& b) { b.foo(*this); } }; int main() { A a; B b; a.bar(b); return 0; }
? ?? ????? ? ?? ??? A? B? ?????. ??? A?? ?? ?? bar? ?? ? ??? ?? ?? ??? B???. ??, ??? B?? foo ?? ??? ?? ? ??? ???? ??? A? ?????. main ????? ??? A ?? a? ??? B ?? b? ??? ?? b? ?? ??? ???? a? bar ??? ?????.
??? ? ??? ?????? ?? ??? ?? ?? ???? ?????.
error: incomplete type 'A' used in nested name specifier
? ??? ? ??? ???? ? ????? ??? A? ??? ??? ??? ? ?? ??? ?????. ??? A? ??? ??? B? ??? ?? ???? ??? A? ?? ??? ??? ???? ?? ??? ????? ??? A? ?? ?? ? ?? ??? ???? ??? ??? ? ???? ??? ??? ?????.
? ??? ???? ?? ??? ? ? ?? ? ?? ??? ????.
? ?? ??? ? ???? ???? ?? ?? ??? ??? ?? ????. ??? ?? ??? B? ??? ??? A? ??? ?? ? ????.
class A { public: void bar(B& b); }; class B { public: void foo(A& a) { std::cout << "foo function" << std::endl; } }; void A::bar(B& b) { b.foo(*this); }
??? B? ??? ??? A? ?? ?? ???? ????? ??? A? ??? ??? ?? ? ???? ??? ??? ??? ? ????. ??.
? ?? ??? ?? ??? ???? ????. ??? ?? ??? ?? ?? "class" ???? ???? ?? ??? ? ? ????.
class A; class B { public: void foo(A& a) { std::cout << "foo function" << std::endl; } }; class A { public: void bar(B& b); }; void A::bar(B& b) { b.foo(*this); }
?? ??? ???? ?????? A?? ???? ????? ???? ???? ??? ??? ????. ??? ????? ?????. ?? ?? ????? ??? ??? ?? ??? A? ??? ?? ? ??? ?? ?? ??? ??? ??? ? ????.
??? ??? ???? ??? ?? ??? ?? ? ???? ???? ?? ??? ?? ??? ????? ????. ?? ??, ??? ?? ??? A? ??? B? ??? ?? "aclass.h"? "bclass.h"?? ? ?? ??? ?? ?? ? ? ???? ???? ??? ?? ?? ??? ??? ? ????. :
"aclass.h" ????:
#ifndef ACLASS_H #define ACLASS_H class B; class A { public: void bar(B& b); }; #endif
"bclass.h" ????:
#ifndef BCLASS_H #define BCLASS_H #include <iostream> #include "aclass.h" class B { public: void foo(A& a) { std::cout << "foo function" << std::endl; } }; #endif
? ? ???? ???? ???? #include ???? ???? ?? ?? ??? ???? ??? ?????. ??? ?? ? ?? ???:
#include "aclass.h" #include "bclass.h" int main() { A a; B b; a.bar(b); return 0; }
?? ??? ??? ??? ?? ? ???? ???? ??? ?? ?? ??? ????? ?? ???? ?? ???? ? ???? ???? ??? ? ????. . ??? ??? ???? ? ?????.
????? C++ ???? "??: ???? ??? ???? ????" ??? ???? ? ???? ???? ?? ?? ??? ??? ??? ?? ??? ????? ???? ??? ?? ? ????. ? ??? ????? ?? ??? ??? ?????. ??? ??? ???? ??? ???? ???? ??? ??? ??? ???? ? ??? ? ? ????.
? ??? 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)

??? ? ?? "0271: ??? ?? ??"? ?? ?? ??: 1. F1? ??? ???? ??????? ?? ???? ? ?? ?? "??/??"?? ?????. 2. ??? ??? ?? ???? ???? ?????. 3. F10? ??? ?? ?? ???? ?? ?????. 4. ????? ????? ???? ?? ???.

C++ ??? "error:incompletetypeisnotallowed" ??? ??????. C++ ????? ???? ?? ?? ???? ?? ? ??? "error:incompletetypeisnotallowed"???. ? ??? ????? ???? ???? ??? ? ?????. ? ????? ? ??? ??? ???? ? ?? ?? ??? ?????. ???, ??

PHP? ???? ???? ? ?? ?? ? ?? ?????. PHP? ??? PDO(PHP ??? ??) ???? ? ?????? ?? ?? ??????? ?? ???? ???? ?????. ??? ?? PHP ???? ?? ???? ??? PDO ???? ???? ??????? ?? ??? ? ??? ?? ??? ????? ????. PHPFatalerror:CalltoundefinemethodPDO::prep

Vue ???????? axios? ???? ?? ?? ??????. axios? ????? Node.js?? ??? ? ?? Promise ?? HTTP ????????. ?? ???? "Uncaught(inpromise)Error: Requestfailedwithstatuscode500"??? ?? ???? ???? ??? ???, ??? ????? ? ?? ???? ???? ???? ??? ? ????. ? ????? ?? ?? ??? ????.

C++ ??? "error:expectedinitializerbefore'datatype'" ??? ?????. C++ ??????? ??? ??? ? ?? ??? ??? ???? ??? ????. ???? ?? ? ??? "error:expectedinitializerbefore'datatype'"???. ? ??? ????? ?? ???? ?? ???? ???? ????? ???? ????? ???

PHP? ???? ? ??????? ??? ? MySQL ??????? ???? ???? ???? ??? ????. PHP? MySQLi?? MySQL ??????? ?? ???? ??? ?????. ??? ??? MySQLi? ??? ? ??? ?? ?? ???? ??? ? ????. PHPFatalerror:Calltoundefoundfunctionmysqli_connect() ? ?? ???? PHP? ? ??? ?? ? ??? ?????.

PHPWarning:fopen():failedtoopenstream:Nosuchfileordirectory ?? ?? PHP ??? ???? ???? "PHPWarning:fopen():failedtoopenstream:Nosuchfileordirectory"? ?? ?? ?? ??? ?? ?????.

C++ ???? ??? ??? ???? ?? ??? ??? C++ ??? ??? ? ?? ??? ?????. ???? ??? ???? ?????? ????? ???? ??? ??? ? ????. ? ????? ??? C++ ???? ???? ????? ??? ? ??? ?? ? ?? ???? ??? ?? ??? ??? ?????. ?? ??? ?? ?? ???? ??? ???? ???? ?? ?? ?? ??? ??? ?? ??? ????? ??????. ?? ??, ?????? ?? ??? ??? ?? ?? ??? ??? ??? ??? ???? ???.
