Last active
February 10, 2021 10:32
-
-
Save uemuraj/ac1bf1e2205705606c4389c46e346c67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace std; | |
int main() | |
{ | |
int x = 255; | |
cout << setw(10) << setfill('0') << showbase << hex; | |
cout << x << endl; | |
cout << x << endl; | |
cout << setw(10) << x << endl; | |
cout << endl; | |
cout << setw(10) << setfill('0') << internal << showbase << hex; | |
cout << x << endl; | |
cout << x << endl; | |
cout << setw(10) << x << endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
実行結果はこうなる...