課程
/后端開發
/C++
/C++遠征之起航篇
我點運行就這樣了,報錯。
2017-05-09
源自:C++遠征之起航篇 4-5
正在回答
#include<iostream>
iostream
慕_Nothing 提問者
代碼在這兒
#include<isotream>
#include<stdlib.h>
using namespace std;
int main(void)
{
cout<<"請輸入一個整數:"<<endl;
int x;
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;
}
舉報
C++亮點盡在其中,本課程是在C語言基礎上的一個延伸,得以升華
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-05-24
#include<iostream>
2017-05-19
iostream
2017-05-09
iostream
2017-05-09
代碼在這兒
#include<isotream>
#include<stdlib.h>
using namespace std;
int main(void)
{
cout<<"請輸入一個整數:"<<endl;
int x;
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;
}