This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void testFunction( int &x ) | |
| { | |
| std::cout << __FUNCTION__ << std::endl; | |
| std::cout << __FUNCDNAME__ << std::endl; | |
| std::cout << __FUNCSIG__ << std::endl; | |
| x += 3; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| std::vector<Enemy*>::iterator itEnemy; | |
| for ( itEnemy = v.begin(); itEnemy != v.end(); ) | |
| { | |
| if ( (*itEnemy)->GetLife() <= 0 ) | |
| { | |
| delete *itEnemy; | |
| itEnemy = v.erase( itEnemy ); | |
| } | |
| else | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #define DEBUG 1 | |
| void PrintInfo( const char *str ) | |
| { | |
| std::cout << str << std::endl; | |
| } | |
| #if DEBUG |
NewerOlder