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
上传用户:努力努力再努力