Have you considered using a for loop to print either whitespaces or bar segments depending on if the loop is on a certain iteration larger than max - itemnum?
Wait wait wait. Your teacher told you to make a bar graph in C++ with the consule? Or is this you talking a big game and needing a bail out? I have no problem with the later, and I'll gladly help out either way. But I'm curious to know if your teacher is honestly that backward.
EDIT: In the later case, you needing a bail out, I'd show you how to do this in SFML.
Well actually it wasnt my teacher, I dont have a teacher.... Im just learning C++ from zero and found a some papers to start doing a program in a bus tried to do it but it is to difficult for me..
Well actually it wasnt my teacher, I dont have a teacher.... Im just learning C++ from zero and found a some papers to start doing a program in a bus tried to do it but it is to difficult for me..
Uhhhh. then why the big URGENT!!!?
But good for you, if you aren't lying, if you are, shame on you.