you can set the ios::uppercase flag for cout. you can use setf member function of cout to set this flag : [cpp] cout.fill('0'); cout.setf(ios::uppercase); cout<<hex<<setw(2)<<nHigherByteCRC<<" "; cout<<hex<<setw(2)<<nLowerByteCRC <<" "<<endl; [/cpp] and for unsetting this flag us...