lab9
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#include "./func/func.h"
|
||||
int chooseMassiveInput();
|
||||
|
||||
int main(){
|
||||
int x;
|
||||
|
||||
setlocale(LC_ALL, "en_US.UTF-8");
|
||||
|
||||
wchar_t massive[ROW][COL];
|
||||
for(int i = 0;i<ROW;i++)
|
||||
for(int j = 0;j<COL;j++)
|
||||
*(*(massive+i)+j)=L' ';
|
||||
clear();
|
||||
helpMenu();
|
||||
printf("Input: ");
|
||||
while((x=mainget())!=-1){
|
||||
|
||||
if(x==1){
|
||||
helpMenu();printf("Input: ");}
|
||||
|
||||
else if(x==2 || (x>=21 && x<=29) || x==210){
|
||||
if(x==2){setMenu();flush();}
|
||||
else setMassive(x,massive);
|
||||
}
|
||||
|
||||
else if(x==3 || (x>=31 && x<=39) || (x>=310 && x<=320)){
|
||||
if(x==3) funcMenu();
|
||||
else func(x,massive);
|
||||
}
|
||||
|
||||
else if(x==4){
|
||||
seeMassive(massive);
|
||||
}
|
||||
|
||||
else {printf("Input Error \"%d\" is undefind command.\nInput: ",x);}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user