CPP
cpp
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
/*
As requested, I have refactored my boredom application to allow custom input.
INPUT: a line of text containing alpha characters. Leave blank for a demo message.
Currently, only letters are available. Non-alpha characters will be displayed as blanks.
Output will wrap after 5 letters.
*/
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
using std::getline;
using std::string;
const int CHAR_H = 6; // bits tall
const int CHAR_W = 5; // bits wide
const int LINE_W = 5; // word wrap
const int LETTERS[] =
{
0x0118FE2E, 0x00F8BE2F, // A, B
0x00E8862E, 0x00F8C62F,
0x01F0BC3F, 0x0010BC3F,
0x00E8E42E, 0x0118FE31,
0x01F2109F, 0x0064A11E,
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run