Skip to content

Instantly share code, notes, and snippets.

@hikilaka
Created August 28, 2018 01:43
Show Gist options
  • Save hikilaka/15def0c2d5c2d2a897ef4d7640835f3c to your computer and use it in GitHub Desktop.
Save hikilaka/15def0c2d5c2d2a897ef4d7640835f3c to your computer and use it in GitHub Desktop.
#include <stdio.h>
#define CHAR_W 3
#define CHAR_H 5
int CHAR_TBL[CHAR_H][CHAR_W] = {
{ 0, 1, 0 },
{ 1, 0, 1 },
{ 1, 1, 1 },
{ 1, 0, 1 },
{ 1, 0, 1 },
};
int main() {
for (int y = 0; y < CHAR_H; y++) {
for (int x = 0; x < CHAR_W; x++) {
int set = CHAR_TBL[y][x];
printf("%c", set ? '#' : ' ');
}
printf("\n");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment