cocos2d-x使用CCLOG实现log输出

发布时间:2016-12-9 21:33:14 编辑:www.fx114.net 分享查询网我要评论
本篇文章主要介绍了"cocos2d-x使用CCLOG实现log输出",主要涉及到cocos2d-x使用CCLOG实现log输出方面的内容,对于cocos2d-x使用CCLOG实现log输出感兴趣的同学可以参考一下。

Sample Code 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"); Output 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: Width trick: 10  Cocos2d: A string 举例说明:    

上一篇:1001
下一篇:Linux查看CPU和内存使用情况

相关文章

相关评论