Question: wont compile error lone 33. 10 errror is expected error beore greatest in the void get greatest block of code i dont see any missing
wont compile error lone 33. 10 errror is expected error beore greatest in the void get greatest block of code i dont see any missing semicolons please help
// This program to gve monthly averages on planes landing and departing
// Adam Horton
#include
using namespace std;
struct plane {
int landed; int departed; int greatest; int least; };
int totalDeparted (plane arr []){ int total=0; for(int i=0;i<12;++i){ total += arr[i].departed; } return total; } int totalLanded(plane arr[]){ int total=0; for(int i=0;i<12;++i){ total += arr[i].landed; } return total; }
void get greatest (plane arr [],int&m,int&g){ g=-55555; for(int=0;i<12;++i){ if(g int main() { plane arr[12]; for(int=0;i<12;++i){ cout<<"Enter details for the month: "<<(i+1)<
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
