Amid sweltering heat waves, classes have resumed in many districts around the country that have outdated heating and cooling systems — or no air conditioning at all.