#include <iostream>

/*hexoct----shows hex and octal constants */

using namespace std;

int main( )
{
int chest=42;
int waist=0x42;
int inseam=042;

cout<<"Monsieur cuts a striking figure!\n";
cout<<"chest="<<chest<<"\n";
cout<<"waist="<<waist<<"\n";
cout<<"inseam="<<inseam<<"\n";

return 0;
}

 

顯示結果:

Monsieur cuts a striking figure!

chest=42

waist=66

inseam=34

arrow
arrow
    全站熱搜

    布拉怡 發表在 痞客邦 留言(0) 人氣()