I am using C/C++ and I want to create a 3D array which holds CITY-DAY-TEMPERATURE, but I also want the program to print the information in ascending order. The program doesn't need to scan info.
Basically I want my output to be:
City 1, Day 1, Temperature = 26°C
City 1, Day 2, Temperature = 29°C
City 2, Day 1, Temperature = 17°C
City 2, Day 2, Temperature = 15°C
City 3, Day 1, Temperature = 22°C
City 3, Day 2, Temperature = 24°C
COLDEST DAYS:
City 2, Day 2, Temperature = 15°C
City 2, Day 1, Temperature = 17°C
City 3, Day 1, Temperature = 22°C
City 3, Day 2, Temperature = 24°C
City 1, Day 1, Temperature = 26°C
City 1, Day 2, Temperature = 29°C
Could anyone help? I know the basics about C but I have no idea how to sory information in 3D arrays.