close

We can use the operator , dec , oct , and hex to decide which format we want.

for example:

int main()

{

cout << oct << 10 << endl;

cout << hex << 10 <<endl;

cout << dec << 10 << endl;

return 0;


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 JerryCheng 的頭像
    JerryCheng

    KwCheng's blog

    JerryCheng 發表在 痞客邦 留言(0) 人氣()