Most people in three African countries have an optimistic outlook despite continuing anger at corruption and economic woes, a survey has found. South Africans, Nigerians and Kenyans all say healthcare and education will be better for the next generation.