cocos2d CCLOG格式符号表-LMLPHP

使用示例:

 CCLOG("Characters: %c %c", 'a', );
CCLOG("Decimals: %d %ld", , 650000L);
CCLOG("Preceding with blanks: %10d", );
CCLOG("Preceding with zeros: %010d", );
CCLOG("Some different radixes: %d %x %o %#x %#o", , , , , );
CCLOG("Floats: %4.2f %.0e %E", 3.1416, 3.1416, 3.1416);
CCLOG("%s","A string");

输出:

 cocos2d: Characters: a A
cocos2d: Decimals: 1977 650000
cocos2d: Preceding with blanks: 1977
cocos2d: Preceding with zeros: 0000001977
cocos2d: Some different radixes: 100 64 144 0x64 0144
cocos2d: Floats: 3.14 3e+00 3.141600E+00
cocos2d: A string
04-26 12:55