虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

IF

  • 溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void)

    溫度華氏轉變攝氏 #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 }

    标签: include stdlib stdio gt

    上传时间: 2013-12-12

    上传用户:亚亚娟娟123

  • 成績顯示三個部份abc #include<stdio.h> #include<stdlib.h> int main(void) { float gread

    成績顯示三個部份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,in

    河內塔問題 #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) } }

    标签: int include stdlib fun_a

    上传时间: 2016-12-08

    上传用户:努力努力再努力

  • function [U,center,result,w,obj_fcn]= fenlei(data) [data_n,in_n] = size(data) m= 2 % Exponent fo

    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

  • unsigned char WriteInData(unsigned char Address,unsigned char DataByte) { unsigned char mark WREN

    unsigned char WriteInData(unsigned char Address,unsigned char DataByte) { unsigned char mark WREN() Write_Byte(0x02) Write_Byte(Address) Write_Byte(DataByte) //NOP() X25_cs=1 lag(3000) mark=Read_Byte(Address) IF(DataByte==mark) SystemError=0 IF(mark!=DataByte) SystemError=1 // return(SystemError) } //虽然是一读一写,但是其中暗藏杀机,让人很难调通。一定注意接口的位置!呵呵!不信你就按普通的SPI程序方法写写试试!

    标签: unsigned char WriteInData DataByte

    上传时间: 2016-12-14

    上传用户:invtnewer

  • zlibyou can found an optimized version of Zlib 1.1.4 that you can embed into every Delphi executable

    zlibyou can found an optimized version of Zlib 1.1.4 that you can embed into every Delphi executable without use external dlls. Further I have build a little example hoping to aid "young" Delphi programmers getting in trouble with streams... Please let me know IF you ll discover errors. These objects and sources are targeted for executing into P6+ CPU core, and Delphi5-6-7-x software. Benchmarks show this zlib 40% average faster than native DLL distribution and 100% reliable.

    标签: executable can optimized zlibyou

    上传时间: 2016-12-19

    上传用户:lili123

  • selects the mux channel and configures the MAX197 for second write pulse, written with ACQMOD = 0,

    selects the mux channel and configures the MAX197 for second write pulse, written with ACQMOD = 0, termi- either unipolar or bipolar input range. A write pulse (WR nates acquisition and starts conversion on WR°Os risin + CS) can either start an acquisition interval or initiate a edge (Figure 6). However, IF the second control byte combined acquisition plus conversion. The sampling contains ACQMOD = 1, an indefinite acquisition interval interval occurs at the end of the acquisition interval. is restarted. The ACQMOD bit in the input control byte offer

    标签: configures the selects channel

    上传时间: 2013-12-09

    上传用户:

  • selects the mux channel and configures the MAX197 for second write pulse, written with ACQMOD = 0,

    selects the mux channel and configures the MAX197 for second write pulse, written with ACQMOD = 0, termi- either unipolar or bipolar input range. A write pulse (WR nates acquisition and starts conversion on WR°Os risin + CS) can either start an acquisition interval or initiate a edge (Figure 6). However, IF the second control byte combined acquisition plus conversion. The sampling contains ACQMOD = 1, an indefinite acquisition interval interval occurs at the end of the acquisition interval. is restarted. The ACQMOD bit in the input control byte offer

    标签: configures the selects channel

    上传时间: 2016-12-24

    上传用户:朗朗乾坤

  • selects the mux channel and configures the MAX197 for second write pulse, written with ACQMOD = 0,

    selects the mux channel and configures the MAX197 for second write pulse, written with ACQMOD = 0, termi- either unipolar or bipolar input range. A write pulse (WR nates acquisition and starts conversion on WR°Os risin is restarted. The ACQMOD bit in the input control byte offer+ CS) can either start an acquisition interval or initiate a edge (Figure 6). However, IF the second control byte combined acquisition plus conversion. The sampling contains ACQMOD = 1, an indefinite acquisition interval interval occurs at the end of the acquisition interval.

    标签: configures the selects channel

    上传时间: 2016-12-24

    上传用户:yzhl1988

  • This function calculates Akaike s final prediction error % estimate of the average generalization e

    This function calculates Akaike s final prediction error % estimate of the average generalization error. % % [FPE,deff,varest,H] = fpe(NetDef,W1,W2,PHI,Y,trparms) produces the % final prediction error estimate (fpe), the effective number of % weights in the network IF the network has been trained with % weight decay, an estimate of the noise variance, and the Gauss-Newton % Hessian. %

    标签: generalization calculates prediction function

    上传时间: 2014-12-03

    上传用户:maizezhen