#include <iostream>
#include <iomanip>
#include <fstream
using namespace std;
const char Avail = '#';
const char Taken = '*';
const int r = 15;
const int c = 30;
char SEATS[r][c];
int main()
{
// Declarations for main
ifstream inputPrices;
double seatPrices[15];
int row;
int column;
double cost;
int answer;
int confirm;
int choice;
Rachel Roxx
0
Newbie Poster
Recommended Answers
Jump to PostThe easiest is probably to simply keep a variable, call it
totalSales
, to which you add the cost of each ticket that is bought, as they are bought. So, after line 25, you can add:double totalSales = 0.0;
Then, right after line 104, you …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.