用c语言绘制机械图

来源:百度知道 编辑:UC知道 时间:2024/06/17 16:51:58
1. 完成绘制右面机械图(包括主视图、左视图、俯视图,参数自拟)。
2. 机械图为参数化设计,主视图完全根据键盘输入的尺寸参数绘制,左视图和俯视图根据主视图坐标变换获得,主视图未表达的信息再次输入尺寸参数在相应的左视图和俯视图中予以完善。
3. 画出边框和标题栏。

#include<stdio.h>
#include<graphics.h>
#include<conio.h>
#include <string.h>
#include<stdlib.h>
float L1,L2,L3,H1,H2,H3,W1,R1,mmaxx,mmaxy;/*长度的为L1,其次为L2-60,定位尺寸L3-50,高度最长为H1-90,
其次为H2-50,宽度为W1-110,圆的半径为的R1-50*/
void Enter_Data() /* 输入长度L1,L2,L3,高度H1,H2,宽度W1,圆的半径R1*/
{
clrscr();
gotoxy(1,6);
printf("Enter the radius of: he circle. \n");
gotoxy(1,8);
printf("Entere in L1 range(>=16.0):\n");
scanf("%f",&L1);
printf("Entere in L2 range(>=6.0): \n");
scanf("%f",&L2);
printf("Entere in L3 range(>=5.0): \n");
scanf("%f",&L3);
printf("Entere in H1 range(>=9.0): \n");
scanf("%f",&H1);
printf("Entere in H2 range(>=5.0): \n");
scanf("