Hey there. Here's the problem. My do-while statements are correct, the program is running but it does not loop/goes back to the first step when the condition's satisfied, neither does it exterminate when the condition is false. Here's the code (ignore the codes for frames and forms):
#include <iostream.h> //header files
#include <fstream> //header for fstreaming of files
should be a single character like this: char ans;
The first version specifies a null-terminated string which has space for nothing apart from the null terminator. Its use like this cin>>ans; will cause corruption of some other data, with unpredictable results, most likely a program crash.