【发布时间】:2015-08-23 21:40:40
【问题描述】:
#include <iostream>
using namespace std;
int main(){
int intake;
cout<<"Enter the maximum number of intake in this session of 2015, September: ";
cin>>intake;
for(int i=20150900; i<intake+20150900; i++){
cout<<"Enter the total percentage of Student ID numbered #"<<i<<": ";
}
return 0;
}
这是我的代码,当我在 code::blocks 上编译它时会出现以下错误。我是 linux 操作系统的新手,所以我不太了解它是如何工作的。感谢您的帮助! :) 错误信息:
g++ -c /home/subbs/Desktop/entrance_exam/main.cpp -o /home/subbs/Desktop/entrance_exam/main.o /bin/sh: 1: g++: 未找到
【问题讨论】:
-
可能需要安装
GCC。也许在你的包管理器中寻找它?
标签: c++ linux codeblocks linux-mint