摘要: #ifndef _mynurbs_h #ifndef _MYNURBS_H #include "gl\gl.h" #include "math.h" //*-*-*-*-*-*-*-*-*-*-*-*-*-*-* B样条基函数计算部分 *-*-*-*-*-*-*-*-*-*-*-*-*-* //确定 阅读全文
posted @ 2019-09-30 09:33 JackieDYH 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<string.h> struct Student//声明结构体类型 { int num; char name[20]; char sex; int age; char beizhu[100]; 13 }; void main() { int co 阅读全文
posted @ 2019-09-30 09:31 JackieDYH 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX 1000 typedef struct Lesson //定义课程结构体 { int Lesson_Num; char Lesson_Name[50]; in 阅读全文
posted @ 2019-09-30 09:28 JackieDYH 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> main() {int x,y,z,m,i,a=1; scanf("%d%d",&x,&y); m=x; if(x<y){ x=y; y=m; } for(i=2;i<=y;i++){ if(x%i==0 && y%i==0) a=i; } printf("zdg 阅读全文
posted @ 2019-09-30 09:26 JackieDYH 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int gy(int m,int n) {int r; if(m<n){ r=m; m=n; n=r; } for(r=n;r>=2;r--){ if(m%r==0 && n%r==0) return(r); }} main() {int x,y; scanf(" 阅读全文
posted @ 2019-09-30 09:26 JackieDYH 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> struct node{ int weight; //权值 int parent; //双亲节点 int lchild,rchild; //左孩子右孩子 }; main() { struct node ht[1000]; int w[1000]; //权值 int 阅读全文
posted @ 2019-09-30 09:24 JackieDYH 阅读(3) 评论(0) 推荐(0) 编辑