소스 검색

Decrease color range

Colors 8 and 9 have no effect
DricomDragon 5 년 전
부모
커밋
b9cef2ced7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      colors/main.cpp

+ 1 - 1
colors/main.cpp

@@ -31,7 +31,7 @@ int main() {
 	cout << endl << "Loop combinations" << endl;
 	for (int cat(0) ; cat <= 8 ; cat ++) {
 		for (int kind(3) ; kind <= 4 ; kind ++) {
-			for (int color(0); color <= 9; color ++) {
+			for (int color(0); color <= 7; color ++) {
 				cout << cat << ';' << kind << color << endl;
 				cout << "\033[" << cat << ';' << kind << color << 'm';
 				cout << "Sample #|!0123456789AaBbCc";