All pastes #492932 Raw Edit

Stuff

public cpp v1 · immutable
·published 2007-05-17 14:38 UTC
rendered paste body
#include <iostream>class Cube{   public:     Cube()     {     }     void init(char[][][] x)     {       zackiscool = x;     }      void setCube(int a, int& b, int c, char d)     {       zackiscool[a][b][c] = d;     }     char getCube(int a, int b, int& c)     {       return zackiscool[a][b][c];     }     char[] toString()     {       char x[62];       int count = 0;       for(int i = 0; i < 6; i++)       {         for(int j = 0; j < 3; j++)         {           for(int k = 0; k < 3; k++)           {              x[count] = zackiscool[i][j][k];              count++;              if(count % 3 == 0)              {                x[count] = '\n';                count++;              }           }         }       }       return x[count];     }   private:     char[][][] zackiscool;};