subject

C++ Assign Barbecue's caloriesPerSlice with the value in Four Cheese's caloriesPerSlice.

#include
#include
#include
using namespace std;

struct PizzaInfo {
string pizzaName;
int caloriesPerSlice;
};

int main() {

vector availablePizzas(2);

availablePizzas. at(0).pizzaName = "Carbonara";
availablePizzas. at(0).caloriesPerSlice = 350;

availablePizzas. at(1).pizzaName = "Ham and Cheese";
availablePizzas. at(1).caloriesPerSlice = 310;

/* Your solution goes here */

cout << "A " << availablePizzas. at(0).pizzaName << " pizza contains " << availablePizzas[0].caloriesPerSlice << " calories." << endl;
cout << "A " << availablePizzas. at(1).pizzaName << " pizza contains " << availablePizzas[1].caloriesPerSlice << " calories." << endl;

return 0;
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 3
question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
question
Computers and Technology, 24.06.2019 05:00
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
If you combine two cells into one, what action are you performing? a.  adding a new row or column      b.  splitting the cells      c.  removing a new row or column      d.  merging the cells
Answers: 2
You know the right answer?
C++ Assign Barbecue's caloriesPerSlice with the value in Four Cheese's caloriesPerSlice.
Questions
question
Mathematics, 16.07.2019 10:30