#include "complexheader.h" //includes the header char yesno; int main() { do //runs the program until the user doesn't input a y { complex x, y; x.getvalues(); //calls the function getvalues to get variables for x input y.getvalues(); //calls the function getvalues to get variables for y input x.printvalues(); //calls the function printvalues to get output for x y.printvalues(); //calls the function printvalues to get output for y add ( x, y ); sub ( x, y ); multiply ( x, y ); cout<<"Do you want to do another? Please enter y for yes or any other key for no: "; cin>>yesno; }while( yesno == 'y' ); return 0; } //end of main