Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. int main()
  7. {
  8.         int queue;
  9.         int items [queue][12];
  10.  
  11.         cout << "How many customers are in the queue?" << endl;
  12.         cin >> queue;
  13.  
  14.  
  15.  
  16.     for (int j=0; j<queue; j++) //Processes through each row individually until queue is completed
  17.     {
  18.         for (int i=0; i<12; i++)
  19.         {
  20.             cout << "Please enter the cost of item #" << i+1 << " for customer number " << j+1 << endl;
  21.             cin >> items[j][i];
  22.            
  23.             //debugging
  24.             cout << "row #" << j << " column #" << i << " = " << items[j][i] << endl;
  25.  
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement