#include "stdafx.h"
#include
//#include
#include
using namespace std;
int main()
{
int i=0;
int iNum1=0, iNum2=0;
while(1)
{
std:cout << "这是第一个程序" << endl;
cout << "请输入i值" << endl;
cin >> hex>>i;
cout << "请输入2个要求和的整数:"<< endl;
cin >>iNum1;
cin >>iNum2;
/*
cout << iNum1<<endl;
cout << "+"<<endl;
cout << iNum2<<endl;
cout << "=" <<endl;
cout << iNum1+iNum2 <<endl;
*/
cout << "i=" << i<<endl;
cout << iNum1<< "+"<<iNum2<< "=" << iNum1+iNum2 <<endl;
cout <<"hex\t"<< "i=" <<hex<< i<<endl;
cout <<"Oct\t"<< "i=" <<oct<< i<<endl;
cout <<"Dec\t"<< "i=" <<dec<< i<<endl;
}
return 0;
}