Question
so my code works in shell but doesn't work in pico c++ editor .cpp compiler these are the errors i get: top_div_array.cpp:81:71: missing terminating
so my code works in shell but doesn't work in pico c++ editor .cpp compiler
these are the errors i get:
top_div_array.cpp:81:71: missing terminating " character top_div_array.cpp:82:2: missing terminating " character top_div_array.cpp: In function `void print_result(float*, std::string*, int)': top_div_array.cpp:82: error: syntax error before string constant gen242@cs04:~>
and this is my code:
//poonam patel //cs 102 spring //calculates highest divisions sales using array and prototypes function
//libraries #include
//arrays for regioons div_regions[0] = "Northeast"; div_regions[1] = "Southeast"; div_regions[2] = "Northwest"; div_regions[3] = "Southwest";
//function populate_div_sales(div_sales,div_regions,4); //debug cout<<"debug print for array div_sales_array"< cout< greatestSalesAmount=sales[0]; for(int i=0; i { greatestSalesAmount=sales[i]; save_index=i; } } return save_index; } //printresults void print_result(float f_sales[], string f_divisions[], int size) { int highest=findHighest(f_sales,4); cout<
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started