Skip to content

Commit eee847a

Browse files
committed
new file: rainbowBomb/main.cpp
1 parent 23ad6ff commit eee847a

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

c/composition/composition.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int main(int argc,char *argv[]){
2828
return 0;
2929
}
3030

31-
void write(char saying1[],char name[]){
31+
void write(char saying1[],const char *name){
3232
sprintf(saying1,"%s,my %s,I do love u so much. ",name,name);
3333
char saying2[]="Pls take me away";
3434
strcat(saying1,saying2);

c/rainbowBomb/main.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <stdio.h>
2+
int main(){
3+
//char char; //todo:make output customize
4+
//char = getchar();
5+
while (true) {
6+
printf("%c[47;31m%s%c[0m\n",0x1B,"~~~~~~~~~~~~~~~~~~~~~~~~",0x1B);
7+
printf("%c[47;33m%s%c[0m\n",0x1B,"~~~~~~~~~~~~~~~~~~~~~~~~",0x1B);
8+
printf("%c[47;32m%s%c[0m\n",0x1B,"~~~~~~~~~~~~~~~~~~~~~~~~",0x1B);
9+
printf("%c[47;36m%s%c[0m\n",0x1B,"~~~~~~~~~~~~~~~~~~~~~~~~",0x1B);
10+
printf("%c[47;34m%s%c[0m\n",0x1B,"~~~~~~~~~~~~~~~~~~~~~~~~",0x1B);
11+
printf("%c[47;35m%s%c[0m\n",0x1B,"~~~~~~~~~~~~~~~~~~~~~~~~",0x1B);
12+
printf("%c[47;37m%s%c[0m\n",0x1B,"~~~~~~~~~~~~~~~~~~~~~~~~",0x1B);
13+
}
14+
}

0 commit comments

Comments
 (0)