how can I place all of my program in a while loop
what I want is this:
the user should enter color of pen ,color of brush and then enter name of a shape that want to draw.
my program should give this information and draw a shape
the user have this permission not to enter something as color of pen or brush.
if he doesn't enter something as pencolor or penbrush my program should have default.
my problem is this:
my program can't give 2 string and then do its task.
i mean my program should do :cin.getline(strsentence)
and do some tasks(for example change the color of pen)
and then cin.getline(strsentence)
this time strsentence is circle(x,y,r)
the program should draw a circle with entered coordinate
but it can't do this task
pleasse help me