Mega Code Archive
Categories
/
C++ Tutorial
/
File Stream
Oct Input stream
#include
#include
istream& OctInput(istream& is); main(void) { int n; cin >> OctInput >> n; cout << "n:" << n << endl; cout << "hex:" <
> oct; return is; } input:12 n:10 hex:a