``Print'' a number
void print(int n)
{
buffer[row][col] = n;
if (++row == rows) {
row = 0;
if (++col == columns) {
flush_buffer();
col = 0;
}
}
}
Previous slide
Next slide
Back to first slide
View graphic version