1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
#include <iostream>
#include <windows.h>
using namespace std;
const int high = 29;
const int wide = 80;
char ZeroZero[high][wide] = {
" x^^^^^^^^^^^^^^^x ",
" x x ",
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",
" x x ",
" x x ",
" x x ",
" x x ",
" x x ",
" x x ",
" x x ",
" x x ",
"xxx xxx",
"< >",
"< >",
"< >",
"< >",
"< >",
"xxx xxx",
" x x ",
" x x ",
" x x ",
" x x ",
" x x ",
" x x ",
" x x ",
" x x ",
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ",
" x x ",
" xvvvvvvvvvvvvvvvx "
};
char OneOne[high][wide];
char OneTwo[high][wide];
char OneThree[high][wide];
char OneFour[high][wide];
//---------- 137 lines omitted here ---------------------
char TwelveTen[high][wide];
char TwelveEleven[high][wide];
char TwelveTwelve[high][wide];
void init();
void copy(char dest[][wide], char src[][wide]);
void show(char arr[][wide]);
int main()
{
init();
show(FourThree);
return 0;
}
void init()
{
// initialise all the arrays.
copy(OneOne, ZeroZero);
copy(OneTwo, ZeroZero);
copy(OneThree, ZeroZero);
copy(OneFour, ZeroZero);
//--------------------- 137 lines omitted here ---------------
copy(TwelveTen, ZeroZero);
copy(TwelveEleven, ZeroZero);
copy(TwelveTwelve, ZeroZero);
}
void copy(char dest[][wide], char src[][wide])
{
for (int row=0; row<high; row++)
for (int col=0; col<wide; col++)
dest[row][col] = src[row][col];
}
void show(char arr[][wide])
{
for (int row=0; row<high; row++)
cout << arr[row] << endl;
}
| |