Я создаю приложение, которое может привлечь к консоли, но моя консольная сбоя
Я проверил свой код рисования, и оно работает нормально. (Я создал его в Codeblocks) />
#include
#include
#define WIDTH 80
#define HEIGHT 40
using namespace std;
//just including basic stuff please try to make solution without including more lib.
int grid[HEIGHT][WIDTH];
int x, y, xp, xs, yp, ys, n;
int length = HEIGHT * WIDTH;
void printarray()
{
//it will print array when it is called in to the console
for (y = 0; y < HEIGHT; y++)
{
for (x = 0; x < WIDTH; x++)
{
/*if (grid[y][x]%2 == 0){ //just test
printf("#");
}else{
printf("_");
}
}
printf("\n");
}
for (int n=0; n
Подробнее здесь: https://stackoverflow.com/questions/494 ... s-function