Created
December 29, 2015 07:41
-
-
Save SizzlingCalamari/5893b7d8710646430652 to your computer and use it in GitHub Desktop.
reading from file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() { | |
unsigned int data; | |
cin >> std::hex; | |
cout << std::hex; | |
while (cin >> data) | |
{ | |
cout << data << endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment