simulates coin tossing. Let the program toss a coin each time the user chooses the “Toss Coin” menu OPTION. Count the number of times each side of the coin appears. Display the results. The program should call a separate method flip that takes no arguments and returns false for tails and true for heads. [ Note: If the program realistically simulates coin tossing, each side of the coin should appear approximately half the time.]
標(biāo)簽: the coin simulates chooses
上傳時(shí)間: 2014-08-30
上傳用戶:pompey
由三星的2442修改而來(lái),正確引導(dǎo)eboot,請(qǐng)注意用三星公版的硬件配置,具體可以參考QQ2440,因?yàn)槲以谛┢脚_(tái)上跑過,具體操作 1.target settings : post-linker:選擇為 ARM fromELF 2.ARM assembler與 ARM c Compiler 的 architecture or processor 選擇為:ARM920T 3.ARM linker的 output:RO base為 0x00000000 (當(dāng)仿真時(shí)為:0x30000000),layout的 object/sysmbol:為2440init.o section:Init 4.ARM fromELF 的 output:format:plain binary , output file name:nboot.bin 下面為全部源碼,注意用ADS編譯 2442addr.h 2442addr.inc 2442init.s 2442lib.c 2442lib.h 2442loader-1208.c 2442slib.h 2442slib.s Def.h k9s1208_s.s Memcfg.inc Nand.h Nand_mini.c OPTION.h OPTION.inc
標(biāo)簽: post-linker settings target eboot
上傳時(shí)間: 2016-05-06
上傳用戶:moshushi0009
This program is free software you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation either version 2 of the License, or (at your OPTION) any later version.
標(biāo)簽: redistribute the software program
上傳時(shí)間: 2016-06-09
上傳用戶:sssl
本計(jì)算器實(shí)現(xiàn)了如下兩個(gè)功能: 1、windows自帶計(jì)算器的鍵盤輸入加減乘除,目前沒有連續(xù)運(yùn)算功能操作:用戶用鍵盤或者鼠標(biāo)分別輸入‘1’,‘+’,‘2’,按‘=’ 文本框顯示運(yùn)算結(jié)果‘3’。 2、表達(dá)式運(yùn)算功能,目前只支持整數(shù)運(yùn)算。操作:選擇菜單OPTION->Expression,在文本框用鍵盤輸入表達(dá)式如‘12/2+(4*5/4)*6’,按計(jì)算器上‘=’,文本框顯示運(yùn)算結(jié)果 ‘12/2+(4*5/4)*6=36’。 3、換膚功能 提供了4種skin,可以自由切換。操作:菜單Skin->Load Skin,選擇skin文件。
標(biāo)簽: windows 計(jì)算器 減 鍵盤
上傳時(shí)間: 2016-06-30
上傳用戶:鳳臨西北
** This source is free software you can redistribute it and/or ** modify it under the terms of the GNU General Public ** License as published by the Free Software Foundation either ** version 2 of the License, or (at your OPTION) any later version.
標(biāo)簽: redistribute the software source
上傳時(shí)間: 2013-12-18
上傳用戶:杜瑩12345
This a GUI based system. The GUI is invoked from the command line by typing "ui_start". The GUI is self explanatory. Tool tips are given in blue color. The cursor needs to be positioned on these for detailed explanation. The main file is "runsim.m". In these simulations the SISO OPTION is not explicitly given. This is because the SISO result for a particular type of modulation is shown in every plot for purposes of comparison. This software has been tested on MATLAB version 6.0 and above with signal processing and communication toolbox OPTIONs.
標(biāo)簽: GUI The ui_start invoked
上傳時(shí)間: 2016-08-24
上傳用戶:杜瑩12345
一種比較好的抗鋸齒算法 Add myaa.m to your path and enjoy anti-aliased professionally looking graphics in Matlab at any time. Myaa works with any kind of graphic (3-D, plots, scatterplots, ...) and even adds anti-aliasing to text, ui controls and grids. Myaa is ideal for complex, cluttered and saturated plots. See attached screenshot for a demonstration. More examples included in the code, just run help myaa . Curiosa: For those of you who publish your code often, an undocumented anti-aliasing OPTION is included in the snapnow.m function in Matlab. To publish a file called test.m you can do: opts.figureSnapMethod = antialiased publish( test.m ,opts) However, you will have more control over the process using myaa, which is also the best choice when using Matlab interactively.
標(biāo)簽: professionally anti-aliased graphics looking
上傳時(shí)間: 2016-09-28
上傳用戶:txfyddz
使用ATMEL AT91RM9200 CPU SDRAM初始化的一個(gè)例子。可以運(yùn)行,初始化之后CS1的0x20000000地址可以訪問。內(nèi)部以文件的形式(Init_SDRam.txt)集成了ADS初始化命令配置,使得本工程可以直接下載到0x20000000地址運(yùn)行,而不必限制于內(nèi)部RAM。配置文件在AXD->OPTION->cfgInterface->session file中配置。祝好運(yùn),好使的話請(qǐng)給個(gè)推薦。
標(biāo)簽: ATMEL SDRAM 9200 CPU
上傳時(shí)間: 2016-11-07
上傳用戶:nanxia
使用ATMEL AT91RM9200 CPU SDRAM初始化的一個(gè)例子。可以運(yùn)行,初始化之后CS1的0x20000000地址可以訪問。內(nèi)部以文件的形式(Init_SDRam.txt)集成了ADS初始化命令配置,使得本工程可以直接下載到0x20000000地址運(yùn)行,而不必限制于內(nèi)部RAM。配置文件在AXD->OPTION->cfgInterface->session file中配置。祝好運(yùn),好使的話請(qǐng)給個(gè)推薦。上一個(gè)傳錯(cuò)了,沒改過的。這個(gè)對(duì)了。
標(biāo)簽: ATMEL SDRAM 9200 CPU
上傳時(shí)間: 2016-11-07
上傳用戶:水口鴻勝電器
河內(nèi)塔問題 #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èi)塔問題\n") printf("請(qǐng)輸入要搬移的圓盤數(shù)目\n") scanf("%d",&n) printf("最少搬移的次數(shù)為%d次\n",fun_a(n)) printf("是否顯示移動(dòng)過程? 是請(qǐng)輸入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個(gè)盤子從第%d座塔移動(dòng)到第%d座塔\n",n,left,right) else { fun_b(n-1,left,right,mid) printf("把第%d個(gè)盤子從第%d座塔移動(dòng)到第%d座塔\n",n,left,right) fun_b(n-1,mid,left,right) } }
標(biāo)簽: int include stdlib fun_a
上傳時(shí)間: 2016-12-08
上傳用戶:努力努力再努力
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1