缺少參數列表的函數調用是什么意思??
#include <iostream>
#include <stdlib.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-07-15
? system;("pause"); ?這一句仔細看,哈哈
2017-07-02
你主函數里面的void是什么東西