I am writing a program where all work is done in the class methods. Main is used to call the methods. I need to know how to get a loop to work without any variables in main that can be used outside the methods.
This is what I have in main:
using namespace std;
//create a constructor for a ferry boat
FerryBoat myBoat('B', 20, 'A');
char currentPort=' ';
char destPort=' ';
char newPort=' ';