Parcourir la source

Arrange styles in an array

DricomDragon il y a 5 ans
Parent
commit
5a8e736f7e
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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;