Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void wypisanie() {
- x = 0;
- HANDLE hOut;
- int dzielnik_wierszy = 15;
- hOut = GetStdHandle( STD_OUTPUT_HANDLE );
- do{
- do {
- if (lista[x]==0) {
- SetConsoleTextAttribute( hOut, BACKGROUND_RED );
- cout <<lista[x] <<" | ";
- x = x + 1;
- }else{
- SetConsoleTextAttribute( hOut, BACKGROUND_GREEN );
- cout <<lista[x] <<" | ";
- x = x + 1;
- }
- }while (x<dzielnik_wierszy - 1);
- dzielnik_wierszy = dzielnik_wierszy + 15;
- if (lista[x]==0) {
- SetConsoleTextAttribute( hOut, BACKGROUND_RED );
- cout <<lista[x] <<" | " << endl;
- x = x + 1;
- }else{
- SetConsoleTextAttribute( hOut, BACKGROUND_GREEN );
- cout <<lista[x] <<" | " << endl;
- x = x + 1;
- }
- }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