哪里錯了?
#include<iostream>
#include<stdib.h>
using namespace std;
int main(void)
{
? ? cout << "請輸入一個整數:" << endl;
int x=0;
cin >> x;
cout << oct << x << endl;
cout << dec << x << endl;
cout << hex << x << endl;
cout << "請輸入一個布爾值(0、1) :" << endl;
bool y=false;
cin >> y;
cout << boolalpha << y << endl;
system("pause");
return 0;
}
2017-04-03
#include<stdlib.h>吧,頭文件