-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.cpp
57 lines (45 loc) · 1.14 KB
/
demo.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <iostream>
#include "WordBox.h"
int main()
{
WordBox w,wb,wn;
wb.textLength(40);
wb.addContent( L"Comparison of Linux Distributions" );
wb.newRow();
wb.print();
w.textLength(14);
w.addContent( L"Beginners" );
w.addContent( L"Advanced " );
w.addContent( L"Experts" );
w.newRow();
w.addContent( L"Ubuntu / Kubuntu" );
w.addContent( L"openSüSE" );
w.addContent( L"Mageia" );
w.newRow();
w.addContent( L"Debian" );
w.addContent( L"RHEL" );
w.addContent( L"Arch" );
w.newRow();
w.addContent( L"Feodora" );
w.addContent( L"Zorin" );
w.addContent( L"Slackware" );
w.newRow();
w.addContent( L"SLAX" );
w.addContent( L"KaOS" );
w.addContent( L"Chimera linux" );
w.newRow();
w.setAlign(0, false);
w.print();
wn.addContent( L"12.24" );
wn.addContent( L"1323" );
wn.addContent( L"43443" );
wn.newRow();
wn.addContent( L"200.000" );
wn.addContent( L"25" );
wn.addContent( L"78.90" );
wn.newRow();
wn.toggleRuler();
wn.setAlign(1, false);
wn.print();
return 0;
}