亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

error C2065: 'setbase' : undeclared identifier?啥情況

error C2065: 'setbase' : undeclared identifier?啥情況

qq_花開花謝_0 2022-07-01 07:07:36
#include <iostream.h>#include <iomanip.h>int main(){int n;cin>>setbase(n);cout<<hex<<n<<endl<<dec<<n<<endl<<oct<<n<<endl;return 0;}error C2871: 'std' : does not exist or is not a namespaceerror C2065: 'setbase' : undeclared identifier怎么回事呢?大神不要打我。題目錯了。沒有那個,只是error C2065: 'setbase' : undeclared identifier
查看完整描述

1 回答

?
慕桂英3389331

TA貢獻2036條經驗 獲得超8個贊

#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int n;
cin>>setbase(n);
cout<<hex<<n<<endl
<<dec<<n<<endl
<<oct<<n<<endl;
return 0;
}


查看完整回答
反對 回復 2022-07-05
  • 1 回答
  • 0 關注
  • 180 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號