たとへば
#include <stdio.h>
::printf("%04X", i);
を STL 風に 記すに
#include <iostream>
#include <iomanip>
std::cout << std::setfill('0') << std::setw(4) << std::hex << i;
なんぞ いと 讀み難し w
Go to list of users who liked
More than 5 years have passed since last update.
たとへば
#include <stdio.h>
::printf("%04X", i);
を STL 風に 記すに
#include <iostream>
#include <iomanip>
std::cout << std::setfill('0') << std::setw(4) << std::hex << i;
なんぞ いと 讀み難し w
Register as a new user and use Qiita more conveniently
Go to list of users who liked