Pārlūkot izejas kodu

Arrange styles in an array

DricomDragon 5 gadi atpakaļ
vecāks
revīzija
5a8e736f7e
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      colors/main.cpp

+ 3 - 1
colors/main.cpp

@@ -35,9 +35,11 @@ int main() {
 				cout << "\033[" << cat << ';' << kind << color << 'm';
 				cout << cat << ';' << kind << color;
 				resetColor();
-				cout << endl;
+				cout << ' ';
 			}
+			cout << " | ";
 		}
+		cout << endl;
 	}
 
 	cout << endl << "Upperline" << endl;