0
I so need help guess...trying to make a bar chart but it keeps outputting one date and a bunch of stars...
include <iostream> #include <fstream> using namespace std; int main() { long population; ifstream inputFile; inputFile.open("People.txt"); cout <<"Prairieville Population Growth\n"; cout <<"(each * represents 1000 people)\n"; for (int year = 1900; year <=2000; year+=20) for (int year = 1920; year <= 2000; year+ 20) for (int year = 1940; year <= 2000; year+20) { inputFile >> population; cout << year << " "; for(int star = 1; star <=population /1000; s
1 ответ
0
could you please upload the complete code in Sololearn’s codeplayground and share it with us?