소스 검색

Restrict kind range

DricomDragon 5 년 전
부모
커밋
5239d0e9a3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      colors/main.cpp

+ 2 - 2
colors/main.cpp

@@ -30,7 +30,7 @@ int main() {
 
 	cout << endl << "Loop combinations" << endl;
 	for (int cat(0) ; cat <= 1 ; cat ++) {
-		for (int kind(3) ; kind <= 8 ; kind ++) {
+		for (int kind(3) ; kind <= 4 ; kind ++) {
 			for (int color(0); color <= 9; color ++) {
 				cout << cat << ';' << kind << color << endl;
 				cout << "\033[" << cat << ';' << kind << color << 'm';
@@ -46,7 +46,7 @@ int main() {
 	cout << endl << "Some text" << endl;
 	resetColor();
 
-	cout << "End." << endl;
+	cout << endl << "End." << endl;
 
 	return 0;
 }