powerunlimited

[1021]工程程式設計_HW2-2

Oct 27th, 2013
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. include<iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4. int main(int argc, char* argv[])
  5. {
  6.     int num16;
  7.     cout<<"請輸入值";
  8.    
  9.         cin>>hex>>num16;
  10.         cout<<"10進位 "<<num16<<endl;
  11.   system("pause");
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment