Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void wypisanie() {
- string wiersze;
- HANDLE hOut;
- int dzielnik_wierszy = 15;
- hOut = GetStdHandle( STD_OUTPUT_HANDLE );
- do{
- do {
- if (lista[x]==0) {
- SetConsoleTextAttribute( hOut, BACKGROUND_RED );
- wiersze = wiersze + "|" + std::to_string(lista[x]);
- x = x + 1;
- }else{
- SetConsoleTextAttribute( hOut, BACKGROUND_GREEN );
- wiersze = wiersze + "|" + std::to_string(lista[x]);
- x = x + 1;
- }
- }while (x<dzielnik_wierszy - 1);
- dzielnik_wierszy = dzielnik_wierszy + 15;
- if (lista[x]==0) {
- SetConsoleTextAttribute( hOut, BACKGROUND_RED );
- wiersze = wiersze + "|" + to_string(lista[x]);
- x = x + 1;
- }else{
- SetConsoleTextAttribute( hOut, BACKGROUND_GREEN );
- wiersze = wiersze + "|" + to_string(lista[x]);
- x = x + 1;
- }
- cout<< wiersze << endl;
- wiersze.clear();
- }while (x<660);
- SetConsoleTextAttribute( hOut, FOREGROUND_GREEN | FOREGROUND_BLUE );
- cout << "Numer cyklu: " << cykl << endl;
- cykl = cykl + 1;
- x = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement