To Implement Character Generation by using Bitmap Method in C++

Here is the implementation of Character Generation by using bitmap method in C++.

#include<graphics.h>
#include<conio.h>
#include<iostream.h>

void main() {
  int gdriver = DETECT, gmode, errorcode;
  initgraph( & gdriver, & gmode, "c:\\tc\\bgi");
  int a[5][7], i, j;
  clrscr();
  cout << "Enter the array";
  for (i = 0; i < 7; i++) {
    for (j = 0; j < 5; j++) {
      cin >> a[i][j];
    }
  }
  cout << endl << endl;
  cout << "The specific letter is:\n"
  for (i = 0; i < 7; i++) {
    for (j = 0; j < 5; j++) {
      if (a[i][j] == 0)
        cout << " ";
      else
        cout << a[i][j] << " ";
    }
    cout << endl;
  }
  getch();
}
Character Generation by using Bitmap Method
Character Generation by using Bitmap Method

One thought on “To Implement Character Generation by using Bitmap Method in C++”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.