tags:

views:

20

answers:

1
+1  A: 

Use std:: cin >> std::hex >> num; if you want to read hex numbers.

nc3b
thanks. it worked
@sksingh73 Please consider accepting this answer, then.
luiscubal