#pragma hdrstop #include //--------------------------------------------------------------------------- #pragma argsused //============================================================================= #include #include //automatisch declareren minimalistisch vrouwenondergoed #include //Ms-Dos lib (nodig voor Sleep) using namespace std; int main() { string text; int length; //============================================================================== const int max = 64; int frame[8][max] = { {0} }; //============================================================================== //losse letters int A[8][8] = { { 0 }, { 1, 1, 1, 1, 1, 1, 1}, { 1, 0, 0, 0, 0, 0, 1}, { 1, 0, 0, 0, 0, 0, 1}, { 1, 1, 1, 1, 1, 1, 1}, { 1, 0, 0, 0, 0, 0, 1}, { 1, 0, 0, 0, 0, 0, 1}, { 1, 0, 0, 0, 0, 0, 1} }; /* int B[8][8] = { { 0 }, { 1, 1, 1, 1, 1, 1, 1}, { 1, 0, 0, 0, 0, 0, 1}, { 1, 0, 0, 0, 0, 0, 1}, { 1, 1, 1, 1, 1, 1, 1}, { 1, 0, 0, 0, 0, 0, 1}, { 1, 0, 0, 0, 0, 0, 1}, { 1, 1, 1, 1, 1, 1, 1 } }; int C[8][8] = { { 0 }, { 1, 1, 1, 1, 1, 1, 1}, { 1 } , { 1 } , { 1 } , { 1 } , { 1 } , { 1, 1, 1, 1, 1, 1, 1} }; */ int *p = A[0]; //============================================================================== //invoer cout << "Schrijf iets" << endl; getline( cin, text ); length = text.length(); cout << "De ingetikte string bevat " << length << " teken(s)" << endl << endl; //============================================================================== //maak frame CONTROLE OP INVOER NOG INBOUWEN for (int row = 0; row < 8; row++) { int xpos = 0; int n = length; while (n > 0) { for (int col = 0; col < 8; col++) { frame[row][xpos] = *(p+(8*row)+col); xpos++; } n--; } } //============================================================================== //schrijf frame naar scherm for (int row = 0; row < 8; row++) { for (int col = 0; col < max; col++) cout << frame[row][col]; Sleep(500); cout << endl; } //============================================================================== cin.get(); return 0; }