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

                                                                                                 return 1 ;

                                       else return 0 ;

                                    }

void Enter_Graphics_Par_DCOloR_From_File( ) //vvod cveta i tipa zalivki is fila

                                     {

                                       FILE * fp ;

                                       fp = fopen ("EPZ.txt","r" ) ;

                                       int a , b ;

                                       fscanf ( fp , "%d %d " , &a , &b ) ;

                                       Co_R = b ; St_E = a ;

                                       fscanf ( fp , "%d %d " , &a , &b ) ;

                                       Co_R1 = b ; St_E1 = a ;

                                       fclose(fp);

                                     }

void Enter_Graphics_Par_DCOloR_From_Kb( )  //vvod cveta i tipa zalivki s kb

                                     {

                                       int a , b ;

                                       printf ("\nvvedite cvet , tip vneshnei trapecii\n");

                                       scanf ("%d %d" , &a , &b ) ;

                                       St_E = b ; Co_R = a ;

                                       printf ("vvedite cvet , tip vneshnei trapecii\n");

                                       scanf ("%d %d" , &a , &b ) ;

                                       Co_R1 = a ; St_E1 = b ;

                                     }

void Get_Graphics_Par_DCOloR_v_File( ) //vvod cveta i tipa zalivki is fila

                                     {

                                       FILE * fp = fopen ( "OutParZaliv.txt" , "w" ) ;

                                       fprintf ( fp , "Co_R = %d St_E = %d Co_R1 = %d St_E = %d" ,Co_R,St_E,Co_R1,St_E1) ;

                                       fclose(fp);

                                     }

void Get_Graphics_Par_DCOloR_na_Dis( ) //vvod cveta i tipa zalivki is fila

                                     {

                                       printf ("\nCo_R = %d St_E = %d Co_R1 = %d St_E = %d\n" ,Co_R,St_E,Co_R1,St_E1) ;

                                     }

void Enter_Graphics_Par_LiNe_From_Kb( ) // linii s kb

                                     {

                                       printf("\nVvedi parametry dly vneshnei trapecii :\n");

                                       scanf ("%d %d" ,&Line_Light , &Line_Tip) ;

                                       printf("Vvedi parametry dly vnutrennei trapecii :\n");

                                       scanf ("%d %d" ,&Line_Light1 , &Line_Tip1) ;

                                     }

void Enter_Graphics_Par_LiNe_From_File(  ) //linii is fila

                                     {

                                       FILE * fp ;

                                       fp = fopen ("ParLin.txt","r");

                                       //dlya vneshnei trapecii

                                       fscanf (fp,"%d %d" , &Line_Light,&Line_Tip ) ;

                                       //dlya vnutrennei trapecii

                                       fscanf (fp,"%d %d" , &Line_Light1,&Line_Tip1 ) ;

                                       fclose(fp);

                                     }

void Get_Graphics_Par_LiNe_na_Dis( ) // linii on Display

                                     {