Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int queue;
- int items [queue][12];
- cout << "How many customers are in the queue?" << endl;
- cin >> queue;
- for (int j=0; j<queue; j++) //Processes through each row individually until queue is completed
- {
- for (int i=0; i<12; i++)
- {
- cout << "Please enter the cost of item #" << i+1 << " for customer number " << j+1 << endl;
- cin >> items[j][i];
- //debugging
- cout << "row #" << j << " column #" << i << " = " << items[j][i] << endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement