minore
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#define intervalin for(int i = 0;i<intervalincell;i++)putchar(symb3);
|
||||
#define intervaln for(int i = 0;i<intervaly;i++)putchar('\n');
|
||||
#define intervalbt for(int i = 0;i<intervalx;i++)putchar(symb3);
|
||||
#define dot *(*(massive+col)+row) = '@';
|
||||
|
||||
void mseehelp(int i){
|
||||
putchar(symb1);
|
||||
@@ -68,10 +69,10 @@ void setMassive(int settype, int (*massive)[COL]){
|
||||
while(buffcmd!=-1){
|
||||
if(row==-1)row=9;
|
||||
re = *(*(massive+col)+row);
|
||||
*(*(massive+col)+row) = 'X';
|
||||
dot;
|
||||
clear();
|
||||
printf("\t\t\tMASSIVE EDIT\nInput:\n\t\"-num-\" to select cell\n\t \"exit\" to leave\n");
|
||||
printf("\ncol:%d row:%d x:%d y:%d st:%d",col,row,x,y,st);
|
||||
//printf("\ncol:%d row:%d x:%d y:%d st:%d",col,row,x,y,st);
|
||||
seeMassive(massive);
|
||||
printf("Massive input: ");
|
||||
buffcmd = buffinput(&cell,&inbuff,buff);
|
||||
@@ -105,7 +106,7 @@ void setMassive(int settype, int (*massive)[COL]){
|
||||
case 22:
|
||||
while(buffcmd!=-1){
|
||||
re = *(*(massive+col)+(row+9));
|
||||
*(*(massive+col)+(row+9)) = 'X';
|
||||
dot;
|
||||
clear();
|
||||
printf("\t\t\tMASSIVE EDIT\nInput:\n\t\"-num-\" to select cell\n\t \"exit\" to leave\n");
|
||||
//printf("\ncol:%d row:%d x:%d y:%d st:%d",col,row,x,y,st);
|
||||
@@ -140,7 +141,7 @@ void setMassive(int settype, int (*massive)[COL]){
|
||||
case 23:
|
||||
while(buffcmd!=-1){
|
||||
re = *(*(massive+col)+row);
|
||||
*(*(massive+col)+row) = 'X';
|
||||
dot;
|
||||
clear();
|
||||
printf("\t\t\tMASSIVE EDIT\nInput:\n\t\"-num-\" to select cell\n\t \"exit\" to leave\n");
|
||||
//printf("\ncol:%d row:%d x:%d y:%d st:%d",col,row,x,y,st);
|
||||
@@ -175,6 +176,7 @@ void setMassive(int settype, int (*massive)[COL]){
|
||||
case 24:
|
||||
while(buffcmd!=-1){
|
||||
re = *(*(massive+(col+9))+row);
|
||||
dot;
|
||||
*(*(massive+(col+9))+row) = 'X';
|
||||
clear();
|
||||
printf("\t\t\tMASSIVE EDIT\nInput:\n\t\"-num-\" to select cell\n\t \"exit\" to leave\n");
|
||||
@@ -212,7 +214,7 @@ void setMassive(int settype, int (*massive)[COL]){
|
||||
x=1,y=1,st=1;
|
||||
while(buffcmd!=-1){
|
||||
re = *(*(massive+col)+row);
|
||||
*(*(massive+col)+row) = '@';
|
||||
dot;
|
||||
clear();
|
||||
printf("\t\t\tMASSIVE EDIT\nInput:\n\t\"-num-\" to select cell\n\t \"exit\" to leave\n");
|
||||
//printf("\ncol:%d row:%d x:%d y:%d st:%d",col,row,x,y,st);
|
||||
@@ -288,7 +290,7 @@ void setMassive(int settype, int (*massive)[COL]){
|
||||
x=5,y=5,st=1,row=4,col=5;
|
||||
while(buffcmd!=-1){
|
||||
re = *(*(massive+col)+row);
|
||||
*(*(massive+col)+row) = '@';
|
||||
dot;
|
||||
printf("\t\t\tMASSIVE EDIT\nInput:\n\t\"-num-\" to select cell\n\t \"exit\" to leave\n");
|
||||
//printf("\ncol:%d row:%d x:%d y:%d st:%d",col,row,x,y,st);
|
||||
seeMassive(massive);
|
||||
@@ -363,7 +365,7 @@ void setMassive(int settype, int (*massive)[COL]){
|
||||
x=1,y=9,st=3,row=0,col=9;
|
||||
while(buffcmd!=-1){
|
||||
re = *(*(massive+col)+row);
|
||||
*(*(massive+col)+row) = 'X';
|
||||
dot;
|
||||
printf("\t\t\tMASSIVE EDIT\nInput:\n\t\"-num-\" to select cell\n\t \"exit\" to leave\n");
|
||||
//printf("\ncol:%d row:%d x:%d y:%d st:%d",col,row,x,y,st);
|
||||
seeMassive(massive);
|
||||
@@ -424,7 +426,7 @@ void setMassive(int settype, int (*massive)[COL]){
|
||||
x=8,y=0,st=3,row=9,col=0;
|
||||
while(buffcmd!=-1){
|
||||
re = *(*(massive+col)+row);
|
||||
*(*(massive+col)+row) = 'X';
|
||||
dot;
|
||||
printf("\t\t\tMASSIVE EDIT\nInput:\n\t\"-num-\" to select cell\n\t \"exit\" to leave\n");
|
||||
//printf("\ncol:%d row:%d x:%d y:%d st:%d",col,row,x,y,st);
|
||||
seeMassive(massive);
|
||||
@@ -486,7 +488,7 @@ void setMassive(int settype, int (*massive)[COL]){
|
||||
x=1,y=0,st=3,row=0,col=0;
|
||||
while(buffcmd!=-1){
|
||||
re = *(*(massive+col)+row);
|
||||
*(*(massive+col)+row) = 'X';
|
||||
dot;
|
||||
printf("\t\t\tMASSIVE EDIT\nInput:\n\t\"-num-\" to select cell\n\t \"exit\" to leave\n");
|
||||
//printf("\ncol:%d row:%d x:%d y:%d st:%d",col,row,x,y,st);
|
||||
seeMassive(massive);
|
||||
@@ -547,7 +549,7 @@ void setMassive(int settype, int (*massive)[COL]){
|
||||
x=8,y=9,st=3,row=9,col=9;
|
||||
while(buffcmd!=-1){
|
||||
re = *(*(massive+col)+row);
|
||||
*(*(massive+col)+row) = 'X';
|
||||
dot;
|
||||
printf("\t\t\tMASSIVE EDIT\nInput:\n\t\"-num-\" to select cell\n\t \"exit\" to leave\n");
|
||||
//printf("\ncol:%d row:%d x:%d y:%d st:%d",col,row,x,y,st);
|
||||
seeMassive(massive);
|
||||
|
||||
Reference in New Issue
Block a user