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

                                                                                     MAS1[6] , MAS1[7] );

             fclose(FGeP);

       }

void Enter_Geometry_Par_From_File( )

       {

             FILE *FGeP;

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

             fscanf ( FGeP , "%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" ,&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.txt","w") ;

             fprintf ( FGeP , "%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" ,MAS1[0] , MAS1[1] ,

                                                                                     MAS1[2] , MAS1[3] ,

                                                                                     MAS1[4] , MAS1[5] ,

                                                                                     MAS1[6] , MAS1[7] );

             fclose(FGeP);

       }

void Enter_Geometry_Par_From_Kb( )

       {

             int a , b , c , d , e ,f , g , h ;

             printf("\nVvedi koordinaty vneshnei trapecii:\n") ;

             scanf ("%d %d %d %d %d %d %d %d" , &MAS[0] , &MAS[1] ,

                                                                         &MAS[2] , &MAS[3] ,

                                                                         &MAS[4] , &MAS[5] ,

                                                                         &MAS[6] , &MAS[7] );

             printf("Vvedi koordinaty vnutrennei trapecii:\n") ;

             scanf ("%d %d %d %d %d %d %d %d" ,&MAS1[0] , &MAS1[1] ,

                                                                        &MAS1[2] , &MAS1[3] ,

                                                                        &MAS1[4] , &MAS1[5] ,

                                                                        &MAS1[6] , &MAS1[7] );

       }

void Get_Geometry_Par_na_Dis( )

       {

             printf("\nkoordinaty vneshnei trapecii :\n") ;

             printf("%d %d %d %d %d %d %d %d" , MAS[0] , MAS[1] ,

                                                                         MAS[2] , MAS[3] ,

                                                                         MAS[4] , MAS[5] ,

                                                                         MAS[6] , MAS[7] );