/*已有3块*/Р { for(i=0;i<=3;i++)Р A[j][i]=MA[i];Р MA[0]=1;Р MA[1]=j; Р } Р display(); /*显示*/ Р}Рvoid menu() /*功能选择函数*/Р{ int choice;Р char judge;Р printf("\ninput your choice:(1--assign,2--callback):");Р scanf("%d",&choice);Р getchar();Р if(choice==1)Р assign();Р else if(choice==2)Р callback();Р elseР printf("\mand!");Р printf("\ncontinue or not?(y--Yes,n--Not):");Р scanf("%c",&judge);Р getchar();Р if(judge=='y')Р menu();Р elseР { printf("\nNow the graph is:");Р display();Р printf("\npress any key to quit");Р getch();Р } Р} Рmain()Р{ int i;Р for(i=0;i<=3;i++)Р MA[i]=A[0][i];Р display();Р menu();Р}