Drawing a line with ncurses
Hello, I would like to know how to draw a line or lines in my multiplication table with ncurses? The code is below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#include <iostream>
#include <curses.h>
using namespace std;
int main()
{
int i, j;
cout << "Multiplication table" << endl;
for(i=1; i<=10; i++) {\
hline(1, 9);
for (j=1; j<=10; j++) {
cout << j*i << "\t";
}
cout << endl;
}
}
|
Last edited on
Topic archived. No new replies allowed.