So i need to create a win32 console program that basically asks a user to input certain information about random people...ie: height, shoe size, weight. after the user has entered the information for the first person, the user is then prompted to enter the same information for another person. eventually when the user is done entering the info for all the people, the program needs to output the averages of all the inputs (average height, weight, shoe size). It would make complete sense for me if i knew exactly how many people there were total, because i could define the variables separately for each person...but how can I program this so the user has the control of how many people are entered, but my program still prints out the correct average values?
programmer2112 0 Newbie Poster
zeroliken 79 Nearly a Posting Virtuoso
thines01 401 Postaholic Team Colleague Featured Poster
programmer2112 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
yongj 1 Junior Poster in Training
WaltP commented: If you think it should work you shouldn't post it. We do NOT do homework for people. That's called CHEATING!! -4
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.