It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
相关专题:
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can 开发者_如何学Cbe reopened, visit the help center.
Closed 12 years ago.
how can i see the answer when i need to solve the decimal code to binary code?
decimal code to binary code? i think that you mean decimal number to binary number, so use std::bitset e.g.
#include <bitset>
...
int i = 49;
std::cout << std::bitset<sizeof(i)*8>(i).to_string() << std::endl;
精彩评论