소스 검색

Format codes instead of string sample

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

+ 1 - 2
colors/main.cpp

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