All pastes #935545 Raw Edit

Something

public text v1 · immutable
·published 2008-03-09 18:45 UTC
rendered paste body
#include "iostream"

using std::cin;
using std::cout;
using std::endl;

int O = 0;
int X = 1;
int i;



int Cinema[20][15] = {
O,O,O,O,O,O,O,O,X,X,O,O,O,O,X,
O,O,O,O,O,O,X,X,X,X,X,O,X,X,O,
X,O,X,O,X,X,X,O,X,O,X,O,X,X,X,
O,O,O,O,X,O,X,O,X,O,O,O,O,X,O,
O,O,O,O,O,X,X,X,X,X,O,O,O,O,O,
O,X,X,X,X,X,O,O,O,O,O,O,X,X,X,
O,O,O,O,O,O,O,O,O,O,O,O,X,O,O,
O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,    // 1   $3
O,O,X,O,X,O,X,O,O,O,X,X,X,X,X,
X,X,X,X,X,X,X,O,O,O,X,X,X,X,X,
X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
O,O,X,O,O,X,O,O,O,O,O,X,X,O,X,
X,X,X,O,O,X,O,O,O,O,O,O,O,O,O,
O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,
O,O,O,O,O,O,O,O,O,X,O,O,O,O,O,    //2 $4
O,O,X,X,X,X,X,X,O,O,O,O,O,X,O,
O,O,O,O,O,O,O,O,X,X,O,X,X,X,X,
O,X,O,O,O,O,X,X,X,X,X,X,X,O,O,
O,O,O,O,O,O,O,X,X,O,O,O,O,O,O,
O,O,O,O,O,X,X,X,X,X,X,O,X,O,O}; // 3  $5


void SeatCounter();

void SeatCounter() {
    
   int counter = 0;
   int i;
   for(i=0;i<=300;i++) {
     if(Cinema[i] = O) {
          break;
         
          }
          else {
               counter++;
              
               }
               }
         




void SetSeatPrice ();
void SetSeatPrice () {
int i;
 int j;
  int Price1;
   int Price2;
     int Price3;
      char X;
       char O;
    
     for(i=0; i<15; i++) {
              for(j=0; j<20; j++) {
                      
                       cout<<"Hai there mah man enter teh Row j00 want to check";
                       cin >> i;
                       cout<<"Yo i now ask you to enter teh lol column j00 want";
                       cin >> j;
                      
                         for(cinema[i][j]
                      
                                if(j<=8 && i<=15) {
                                Price1==3;
                                
                       
                       
                                    if(j<=15 && i<=15) {
                                    Price1==4;
                                    
                              
                                         if(j<=20 && i<=15) {
                                         Price3==5;
                                       }
                                      


             

                       
                              
                      
}