四元式,递归下降法书写的if。。ELse条件语句的语法分析及语义分析程序
标签:
上传时间: 2013-12-08
上传用户:ddddddos
private double PointToAngle(Point AOrigin, Point APoint) { if (APoint.X == AOrigin.X) if (APoint.Y > AOrigin.Y) return Math.PI * 0.5f ELse return Math.PI * 1.5f ELse if (APoint.Y == AOrigin.Y) if (APoint.X > AOrigin.X) return 0 ELse return Math.PI ELse {
标签: AOrigin APoint Point PointToAngle
上传时间: 2016-10-31
上传用户:zhyiroy
private double PointToAngle(Point AOrigin, Point APoint) { if (APoint.X == AOrigin.X) if (APoint.Y > AOrigin.Y) return Math.PI * 0.5f ELse return Math.PI * 1.5f ELse if (APoint.Y == AOrigin.Y) if (APoint.X > AOrigin.X) return 0 ELse return Math.PI ELse {
标签: AOrigin APoint Point PointToAngle
上传时间: 2016-10-31
上传用户:sunjet
private double PointToAngle(Point AOrigin, Point APoint) { if (APoint.X == AOrigin.X) if (APoint.Y > AOrigin.Y) return Math.PI * 0.5f ELse return Math.PI * 1.5f ELse if (APoint.Y == AOrigin.Y) if (APoint.X > AOrigin.X) return 0 ELse return Math.PI ELse {
标签: AOrigin APoint Point PointToAngle
上传时间: 2013-12-18
上传用户:rocketrevenge
This utility has two views: (a) one view that will show you the entire PnP enumeration tree of device objects, including relationships among objects and all the device s reported PnP characteristics, and (b) a second view that shows you the device objects created, sorted by driver name. There is nothing like this utility available anywhere ELse.
标签: enumeration utility entire devic
上传时间: 2013-12-17
上传用户:zjf3110
溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") ELse if (a>=80) printf("73分=B等級!!\n") ELse if (a>=70) printf("73分=C等級!!\n") ELse if (a>=60) printf("73分=D等級!!\n") ELse if (a<60) printf("73分=E等級!!\n") } { if (b>=90) printf("b=A等級!!\n") ELse if (b>=80) printf("85分=B等級!!\n") ELse if (b>=70) printf("85分=C等級!!\n") ELse if (b>=60) printf("85分=D等級!!\n") ELse if (b<60) printf("85分=E等級!!\n") } { if (c>=90) printf("c=A等級!!\n") ELse if (c>=80) printf("66分=B等級!!\n") ELse if (c>=70) printf("66分=C等級!!\n") ELse if (c>=60) printf("66分=D等級!!\n") ELse if (c<60) printf("66分=E等級!!\n") } system("pause") return 0 }
上传时间: 2014-11-10
上传用户:wpwpwlxwlx
溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") ELse if (a>=80) printf("73分=B等級!!\n") ELse if (a>=70) printf("73分=C等級!!\n") ELse if (a>=60) printf("73分=D等級!!\n") ELse if (a<60) printf("73分=E等級!!\n") } { if (b>=90) printf("b=A等級!!\n") ELse if (b>=80) printf("85分=B等級!!\n") ELse if (b>=70) printf("85分=C等級!!\n") ELse if (b>=60) printf("85分=D等級!!\n") ELse if (b<60) printf("85分=E等級!!\n") } { if (c>=90) printf("c=A等級!!\n") ELse if (c>=80) printf("66分=B等級!!\n") ELse if (c>=70) printf("66分=C等級!!\n") ELse if (c>=60) printf("66分=D等級!!\n") ELse if (c<60) printf("66分=E等級!!\n") } system("pause") return 0 }
上传时间: 2013-12-12
上传用户:亚亚娟娟123
成績顯示三個部份abc #include<stdio.h> #include<stdlib.h> int main(void) { float gread printf("請輸入分數\n") scanf("%f",&gread) if(gread>=80&&gread<=100) printf("成績為A\n") ELse if(gread>=60&&gread<=79) { printf("成績為B\n") } ELse if(gread>=0&&gread<60) { printf("成績為C\n") } ELse { printf("分數輸入錯誤\n") } system("pause") return 0 }
标签: include stdlib float gread
上传时间: 2014-01-15
上传用户:waizhang
河內塔問題 #include<stdio.h> #include<stdlib.h> int fun_a(int) void fun_b(int,int,int,int) int main(void) { int n int option printf("題目二:河內塔問題\n") printf("請輸入要搬移的圓盤數目\n") scanf("%d",&n) printf("最少搬移的次數為%d次\n",fun_a(n)) printf("是否顯示移動過程? 是請輸入1,否則輸入0\n") scanf("%d",&option) if(option==1) { fun_b(n,1,2,3) } system("pause") return 0 } int fun_a(int n) { int sum1=2,sum2=0,i for(i=n i>1 i--) { sum1=sum1*2 } sum2=sum1-1 return sum2 } void fun_b(int n,int left,int mid,int right) { if(n==1) printf("把第%d個盤子從第%d座塔移動到第%d座塔\n",n,left,right) ELse { fun_b(n-1,left,right,mid) printf("把第%d個盤子從第%d座塔移動到第%d座塔\n",n,left,right) fun_b(n-1,mid,left,right) } }
上传时间: 2016-12-08
上传用户:努力努力再努力
function [U,center,result,w,obj_fcn]= fenlei(data) [data_n,in_n] = size(data) m= 2 % Exponent for U max_iter = 100 % Max. iteration min_impro =1e-5 % Min. improvement c=3 [center, U, obj_fcn] = fcm(data, c) for i=1:max_iter if F(U)>0.98 break ELse w_new=eye(in_n,in_n) center1=sum(center)/c a=center1(1)./center1 deta=center-center1(ones(c,1),:) w=sqrt(sum(deta.^2)).*a for j=1:in_n w_new(j,j)=w(j) end data1=data*w_new [center, U, obj_fcn] = fcm(data1, c) center=center./w(ones(c,1),:) obj_fcn=obj_fcn/sum(w.^2) end end display(i) result=zeros(1,data_n) U_=max(U) for i=1:data_n for j=1:c if U(j,i)==U_(i) result(i)=j continue end end end
标签: data function Exponent obj_fcn
上传时间: 2013-12-18
上传用户:ynzfm