i am new to programming and having trouble figuring out how to put quotations around words so they show up in output.
this is my code
all of the variables are already defined, when i'm prompted to enter a name for lotName, i want the lotName to have quotes around it. for example;
when i run my program now i am getting the following;
Enter lot name: 1989 Super Colon Blow
Reserve price: $500
Bidder1 ID: Albert
Bidder1 price: $500.01
Albert is high bidder, current price = $500.00
Bidder2 ID: George II
Bidder2 price: $-600
Congratulations, Albert
You won 1989 Super Colon Blow at a price of $500.00.
what i need to have is the same thing with " " around Super Colon Blow in the last sentence, how do i do that?
this is my code
void printDetailsOfWinner(string bidderName, string lotName, double bid) { cout << "Congratulations, " << bidderName << endl << " You won "<<lotName<<" at a price of $" << bid << endl; }
all of the variables are already defined, when i'm prompted to enter a name for lotName, i want the lotName to have quotes around it. for example;
when i run my program now i am getting the following;
Enter lot name: 1989 Super Colon Blow
Reserve price: $500
Bidder1 ID: Albert
Bidder1 price: $500.01
Albert is high bidder, current price = $500.00
Bidder2 ID: George II
Bidder2 price: $-600
Congratulations, Albert
You won 1989 Super Colon Blow at a price of $500.00.
what i need to have is the same thing with " " around Super Colon Blow in the last sentence, how do i do that?