Разработка программы, демонстрирующей выполнение функций рисования геометрических фигур (Лабораторная работа по № 1), страница 2

                                                                            case 9 : {if(Find_Errors(MAS)&&Find_Errors_D (MAS)){paint_F_Z (1);clrscr();}else {clrscr();printf("Error");getch();}}break;

                                                                            case 10 : {if(Find_Errors(MAS1)&&Find_Errors_D (MAS1)){paint_F_Z (2);clrscr();}else {clrscr();printf("Error");getch();}}break;

                                                                            case 11 : {if(Find_Errors_Phigura()&&Find_Errors_Display ()){paint_F_v_F ();clrscr();}else {clrscr();printf("Error");getch();}}break;

                                                                            case 12 : {Get_Geometry_Par_na_Dis();getch();}break;

                                                                            case 13 : Get_Geometry_Par_v_File();break;

                                                                            case 14 : {Get_Graphics_Par_LiNe_na_Dis();getch();}break;

                                                                            case 15 : Get_Graphics_Par_LiNe_v_File();break;

                                                                            case 16 : {Get_Graphics_Par_DCOloR_na_Dis();getch();}break;

                                                                            case 17 : Get_Graphics_Par_DCOloR_v_File();;break;

                                                                            case 18 : break;

                                                                            default : printf("neizvestnaia operaciia");

                                                                          }

                                                                        }

              getch();

             }

void Enter_Geometry_Par_From_File( )

       {

             FILE *FGeP;

             FGeP = fopen ("Geometry","r") ;

             fscanf ( FGeP , "%d %d %d %d %d %d %d %d %d %d" , MAS[0] , MAS[1] ,

                                                                                      MAS[2] , MAS[3] ,

                                                                                      MAS[4] , MAS[5] ,

                                                                                      MAS[6] , MAS[7] );

             fscanf ( FGeP , "%d %d %d %d %d %d %d %d %d %d" ,MAS1[0] , MAS1[1] ,

                                                                                     MAS1[2] , MAS1[3] ,

                                                                                     MAS1[4] , MAS1[5] ,

                                                                                     MAS1[6] , MAS1[7] );

             fclose(FGeP);

       }

void Get_Geometry_Par_v_File( )

       {

             FILE *FGeP;

             FGeP = fopen ("Out Geometry","r") ;

             fprintf ( FGeP , "%d %d\n%d %d\n%d %d\n%d %d\n%d %d\n" , MAS[0] , MAS[1] ,

                                                                                      MAS[2] , MAS[3] ,

                                                                                      MAS[4] , MAS[5] ,

                                                                                      MAS[6] , MAS[7] );

             fprintf ( FGeP , "\n%d %d\n%d %d\n%d %d\n%d %d\n%d %d" ,MAS1[0] , MAS1[1] ,

                                                                                     MAS1[2] , MAS1[3] ,

                                                                                     MAS1[4] , MAS1[5] ,