File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ CMAKE_MINIMUM_REQUIRED (VERSION 2.9 )
2+ PROJECT (RainbowBomb)
3+ INCLUDE_DIRECTORIES (include )
4+ AUX_SOURCE_DIRECTORY (src DIR_SRCS )
5+ ADD_EXECUTABLE (../bin/bin ${DIR_SRCS} )
6+
7+
Original file line number Diff line number Diff line change 1+ #include <stdio.h>
2+ #include <stdbool.h>
3+ int bomb (int times , char Char );
Original file line number Diff line number Diff line change 1+ #include "../include/bomb.h"
2+ int bomb (int times ,char Char ){
3+ printf ("%c[47;31m" ,0x1B );
4+ while (times > 0 ){
5+ putchar (Char );
6+ times -- ;
7+ }
8+ printf ("%c[0m\n" ,0x1B );
9+ return 0 ;
10+ }
Original file line number Diff line number Diff line change 1- #include <stdio.h>
2- #include <stdbool.h>
3- int bomb (int times ,char Char ){
4- printf ("%c[47;31m" ,0x1B );
5- while (times > 0 ){
6- putchar (Char );
7- times -- ;
8- }
9- printf ("%c[0m\n" ,0x1B );
10- }
1+ #include "../include/bomb.h"
112int main (int argc ,char * argv []){
123 char Char ;
134 if (1 == argc ){
Original file line number Diff line number Diff line change 1+ CMAKE_MINIMUM_REQUIRED (VERSION 2.9 )
12PROJECT (test_math)
23INCLUDE_DIRECTORIES (include )
34AUX_SOURCE_DIRECTORY (src DIR_SRCS )
You can’t perform that action at this time.
0 commit comments