Docsity

Microsoft Visual - Object Oriented Design | CSE 687, Study notes of Engineering

Partial preview of the text

Download Microsoft Visual - Object Oriented Design | CSE 687 and more Study notes Engineering in PDF only on Docsity!

77 Hexconvert cpp RS! Workspace hexConv’ 1 projes #include tinclude 23) Source Files pinetude ceetyean> include (string> using namespace std: Header Files (Gy Resource Files tdefine HalfByteToHex(n) ((char) ((({n) > 3) 7 ((n) template string toHex(T t) { string temp: const int mask = Oxf; while(t > 0) { temp. insert (0. HalfByteToHex(mask & t)): tet >> a: while(temp.size() <¢ sizeof(T)) temp. insert (0,'0'}: return temp: ¥ void main() { int j.k: for(j=0; 4 for(k=0: k<«8: k++) { cout << toHex(j+k).c_str() << + cout << "Nn\n": Hexconvert — Wing? Debug— lhexConv exe — 0 error(s). 0 warning(s) - 10+ 'a') GaDF