I have a string function that I would like to output the following cout lines.
 string print_ticket(void){
        if(sold_status == true){
            cout<<seat_number<<" "<<seat_number<<"sold";
        }
        else{
            cout<<seat_number<<" "<<seat_number<<"available";
        }
    }
The problem is the function must return a string and I'm not sure the best way to turn these cout statement into a string in this scenario.
Thank you for any assistance.
 
     
    