View Single Post
Old 03-30-2005, 12:21 PM   #4 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 651
DJMaze is on a distinguished road
use
PHP Code:
void** Matrix
void can mean anything so you may use

PHP Code:
void screen::setSeat(int xSeatint ySeatcustomer *cust)
{
  
seatsXY[xSeat][ySeat] = (void*)cust;

Or if you're 100% shure + it's called a lot + you want speed increase without "type" checking

PHP Code:
void screen::setSeat(int xSeatint ySeatcustomer *cust)
{
  
seatsXY[xSeat][ySeat] = static_cast<void *>(cust);

DJMaze is offline   Reply With Quote