ICEMAN
جمعه 05 بهمن 1386, 19:03 عصر
سلام ...
برنامه ای نوشتم که از dynamic_cast برای polymorphism استفاده میکنه در VC++6
نمومه ای از کد و خطا ها رو نوشتم
vector < baseClass * > testVEC( 4 );
dynamic_cast < testClass * >
( testVEC[ i ] );
warning C4541: 'dynamic_cast' used on polymorphic type 'class Employee' with /GR-; unpredictable behavior may result
Warning C4541: 'typeid' used on polymorphic type 'class Employee' with /GR-; unpredictable behavior may
برنامه ای نوشتم که از dynamic_cast برای polymorphism استفاده میکنه در VC++6
نمومه ای از کد و خطا ها رو نوشتم
vector < baseClass * > testVEC( 4 );
dynamic_cast < testClass * >
( testVEC[ i ] );
warning C4541: 'dynamic_cast' used on polymorphic type 'class Employee' with /GR-; unpredictable behavior may result
Warning C4541: 'typeid' used on polymorphic type 'class Employee' with /GR-; unpredictable behavior may