#include #include #include #include "GammaFonts.h" using namespace std; int len[10],a,i,j,k,l,m,row[10],rows=6,binar[10][8][72]; int element[8],width[10],mult; int lines[10][8][20]; const int offset=0x20; string text[2]; void dec_bin(int); main () { //text="123456789"; text[0]="MICHAEL"; text[1]="KALIGA :)"; mult=8; for (m=0; m<2; m++) { len[m]=text[m].length(); width[m]=len[m]*mult; cout <<"lenght " <15) cout <<"0x"<15) cout << "0x"<0) && (j==0)) cout <<"|"; if ((m==0) && (i>0) && (j==width[1])) cout <<" |"; if ((m==1) && (i>0) && (j==width[1])) cout <<" |"; /*if ((i==0) && (j>0) && (j<38)) { if (j<37) cout <<"-"; else cout <<" +"; }*/ if (j>a; } void dec_bin(int dec) { double wykl; int f; double dec_double; dec_double=dec; if (dec!=0) { do { wykl=0; while( pow(2,wykl)< dec_double) { wykl++; } if (pow(2,wykl)>dec_double) wykl--; dec_double=dec_double-pow(2,wykl); f=wykl; element[7-f]=1; } while (dec_double!=0); } return; }