Skip to content

Instantly share code, notes, and snippets.

@SizzlingCalamari
Created December 29, 2015 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SizzlingCalamari/5893b7d8710646430652 to your computer and use it in GitHub Desktop.
Save SizzlingCalamari/5893b7d8710646430652 to your computer and use it in GitHub Desktop.
reading from file
#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