1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #include <iostream>
- #include <windows.h>
- #include "Const.h"
- #include "Control.h"
- int main()
- {
- snake_size = 7;// >0 Âêëþ÷àåò ãîëîâó + ðàçìåð õâîñòà (åñëè 1 - òî òîëüêî ãîëîâà)
- timeout = 200; //> 100 (ms), 1000 - áóäåò çàäåðæèâàòü âûïîëíåíèå ïðîãðàììû íà 1 ñåêóíäó
- char field[columns]{};
- for (int i = 0; i < (columns); i++)
- {
- field[i] = '*';
- }
- field[columns] = '\0';
- //std::cout << field << std::endl;
- stop
-
-
- return 0;
- }
|