Skip to content

Commit 1e6bbf6

Browse files
Merge pull request #308 from gourshabrg/addN/straight
character N of straight is add
2 parents 50d39c9 + 72c1130 commit 1e6bbf6

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

Fonts/Straight/straight.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,22 @@ class Straight : public Fonts
162162
}
163163
*/
164164

165-
/*
166-
char **N()
165+
char **N()
167166
{
168167
char **character = getCharGrid();
169168

170-
//Enter the character grid in ROWS X COLS
169+
character[1][0] ='|';
170+
character[1][1] ='\\';
171+
character[1][2] =' ';
172+
character[1][3] ='|';
173+
character[2][0] ='|';
174+
character[2][1] =' ';
175+
character[2][2] ='\\';
176+
character[2][3] ='|';
171177

178+
172179
return character;
173180
}
174-
*/
175181

176182
/*
177183
char **O()

example.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using namespace ascii;
55

66
int main()
77
{
8-
Ascii a = Ascii(starwar);
9-
a.print("M");
8+
Ascii a = Ascii(straight);
9+
a.print("N");
1010
return 0;
1111
}

0 commit comments

Comments
 (0)