The growth of students in a class is represented as an array. Determine the average height of boys and girls. Print a message who is taller girls or boys.
I realized that I needed to set an array (3 above - boys, 3 below - girls), calculate the average value and compare, but I always have some errors. I can not even properly display the array on the screen, although I did the following:
#include <iostream> #include <string> using namespace std; int main() std::string students[6]={ "170", "171", "189", "160", "156", "159"}; cout<<students; return 0; } I just can not understand what's the matter then.