请问long long型的数据怎么用printf来打印出来?
用“%ld”好像不行啊,谢谢!
------解决方案--------------------应该是lld
------解决方案--------------------[God]~/project/test> cat cc.cc
#include <iostream>
int
main(void)
{
long long int a(1048576*20);
std::cout < <a < <std::endl;
return 0;
}
[God]~/project/test> g++ cc.cc
[God]~/project/test> g++ -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.4 [FreeBSD] 20050518