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.]
標簽: the coin simulates chooses
上傳時間: 2014-08-30
上傳用戶:pompey
由三星的2442修改而來,正確引導eboot,請注意用三星公版的硬件配置,具體可以參考QQ2440,因為我在些平臺上跑過,具體操作 1.target settings : post-linker:選擇為 ARM fromELF 2.ARM assembler與 ARM c Compiler 的 architecture or processor 選擇為:ARM920T 3.ARM linker的 output:RO base為 0x00000000 (當仿真時為: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
標簽: post-linker settings target eboot
上傳時間: 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.
標簽: redistribute the software program
上傳時間: 2016-06-09
上傳用戶:sssl
本計算器實現了如下兩個功能: 1、windows自帶計算器的鍵盤輸入加減乘除,目前沒有連續運算功能操作:用戶用鍵盤或者鼠標分別輸入‘1’,‘+’,‘2’,按‘=’ 文本框顯示運算結果‘3’。 2、表達式運算功能,目前只支持整數運算。操作:選擇菜單option->Expression,在文本框用鍵盤輸入表達式如‘12/2+(4*5/4)*6’,按計算器上‘=’,文本框顯示運算結果 ‘12/2+(4*5/4)*6=36’。 3、換膚功能 提供了4種skin,可以自由切換。操作:菜單Skin->Load Skin,選擇skin文件。
上傳時間: 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.
標簽: redistribute the software source
上傳時間: 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.
上傳時間: 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.
標簽: professionally anti-aliased graphics looking
上傳時間: 2016-09-28
上傳用戶:txfyddz
使用ATMEL AT91RM9200 CPU SDRAM初始化的一個例子。可以運行,初始化之后CS1的0x20000000地址可以訪問。內部以文件的形式(Init_SDRam.txt)集成了ADS初始化命令配置,使得本工程可以直接下載到0x20000000地址運行,而不必限制于內部RAM。配置文件在AXD->option->cfgInterface->session file中配置。祝好運,好使的話請給個推薦。
上傳時間: 2016-11-07
上傳用戶:nanxia
使用ATMEL AT91RM9200 CPU SDRAM初始化的一個例子。可以運行,初始化之后CS1的0x20000000地址可以訪問。內部以文件的形式(Init_SDRam.txt)集成了ADS初始化命令配置,使得本工程可以直接下載到0x20000000地址運行,而不必限制于內部RAM。配置文件在AXD->option->cfgInterface->session file中配置。祝好運,好使的話請給個推薦。上一個傳錯了,沒改過的。這個對了。
上傳時間: 2016-11-07
上傳用戶:水口鴻勝電器
河內塔問題 #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
上傳用戶:努力努力再努力