fokinews.blogg.se

Ascii art thumbs up
Ascii art thumbs up








The idea is to give you a hint! #include Įnum alph_enum NOTE: Obviously, the following lacks in a lot of things like memory de-allocation, error checking, incomplete code, etc. You can try something like the following: (My C is a bit rusty, from there the "pseudo" code. Something like the following comes to mind: for each line, i to render : // (i.e the height of the letters) Actually, you can skip the render array and simply print each line without a carriage return. A simply nested for loop should do the trick: for each line, i to render (i.e the height of the letters)Ĭoncatenate line i of letter j to the to char* i in the arrayįinally loop though the array and print each line.

ascii art thumbs up

The actual render would be in an array as well, something along the lines of:Īnd then use concatenation to build each line. (Actually a 2D array would be used where each letter is at a different index.)

ascii art thumbs up

For example your A would be something like this: char* letter The last time I solved this is to use an array for each line and rendering each letter separately.įirstly, I would represent each letter in an array.










Ascii art thumbs up