hello,
i am very new to c++. and i am having problem like this:
i definied a new type
typedef unsigned short int word
word k[5] = {0xaaaa, 0xbbbb, 0xaccc, 0x0101, 0x3333};
for(int i=0; i<5; i++)
cout << (k[i]) <<"\n";
and i want to print it in hexa format, as it was on input. can anybody tell me how to do it with the easiest way? thank you.
r