如何使用cout打印0x0a而不是0xa?
#include <iostream> using std::cout; using std::endl; using std::hex; int main() { cout << hex << showbase << 10 << endl; }
c++ io iostream iomanip
c++ ×1
io ×1
iomanip ×1
iostream ×1