cocos2d-x 之 cclog

#define COCOS2D_DEBUG 1

cocos2d-x 之 cclog

CCLOG ("Characters: %c %c \n", 'a', 65);
	CCLOG ("Decimals: %d %ld\n", 1977, 650000L);
	CCLOG ("Preceding with blanks: %10d \n", 1977);
	CCLOG ("Preceding with zeros: %010d \n", 1977);
	CCLOG ("Some different radixes: %d %x %o %#x %#o \n", 100, 100, 100, 100, 100);
	CCLOG ("floats: %4.2f %+.0e %E \n", 3.1416, 3.1416, 3.1416);
	CCLOG ("Width trick: %*d \n", 5, 10);
	CCLOG ("%s \n", "A string");
 1Cocos2d: Characters: a A  2  3Cocos2d: Decimals: 1977 650000  4  5Cocos2d: Preceding with blanks: 1977  6  7Cocos2d: Preceding with zeros: 0000001977  8  9Cocos2d: Some different radixes: 100 64 144 0x64 0144 10 11Cocos2d: floats: 3.14 +3e+00 3.141600E+00 12 13Cocos2d: Width trick: 10 14 15Cocos2d: A string 

你可能感兴趣的:(cocos2d-x 之 cclog)