Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by Bax ( 16 years ago )
#include <iostream>
using namespace std;
int main()
{
string skaicius;


cout << "Iveskite skaiciu: ";
cin >> dec >> skaicius;
cout << uppercase << "16-tainen ";

/* template<class T>
    T fromString(const std::string& s)
{
     std::istringstream stream (s);
     T t;
     stream >> t;
     return t;
}
*/
cout << hex << skaicius << endl;


cout << "Iveskite skaiciu: ";
cin >> hex >> skaicius;
cout << uppercase << "10-tainen ";
cout << dec << skaicius << endl;

system&#40;"pause"&#41;;
return 0;
}

 

Revise this Paste

Your Name: Code Language: