#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;
}
This is my code and when i compile it on code::blocks it gives the following error. I am new to linux OS so i dont know much about how it all works. Thankx for your help! :) Error Message:
g++ -c /home/subbs/Desktop/entrance_exam/main.cpp -o /home/subbs/Desktop/entrance_exam/main.o /bin/sh: 1: g++: not found
Open the terminal and enter sudo apt-get install g++
. This will take care of install g++ and everything else you will need. It is real easy.