The simulator GUI is started with command ui_start in Matlab command window. WLAN simulation starts by clicking the Start Simulation button in the GUI window. WLAN simulation can be terminated, before set number of packets have been reached by pressing control-C .
标签: command simulation simulator ui_start
上传时间: 2016-06-11
上传用户:sevenbestfei
Java: 在n 张扑克牌中找出顺子 题目是这样的:有n张扑克牌,每张牌的取值范围是:2,3,4,5,6,7,8,9,10,J,Q,K,A。在这n张牌中找出顺子(5张及5张以上的连续的牌),并将这些顺子打印出来。 思路:我的思路其实很简单,首先就是要去掉重复的牌,因为同样的顺子之算一个,显然JAVA中的Set很适合这个工作。同时又需要对这些牌进行排序,毫无疑问就是TreeSet了。然后从小到大遍历这些牌,并设置一个计数器count。若发现连续的牌,则count++;若发现不连续的,分2中情况:若count>4,则找到了一个顺子,存起来;反之则什么都不做。然后count=1,从新开始找顺子。下面就是代码:
标签: Java
上传时间: 2013-12-22
上传用户:hewenzhi
一个网络对弈的中国象棋程序 操作: 1、Setting,选择对战方式。如果选择“网络对战”,进入“2”,否则,进入“3”。 2、connect,只在“网络对战”第一盘是需要。 3、set rule,设置计时规则。 4、start,开始下棋。
上传时间: 2014-10-13
上传用户:gtf1207
C++STL STL(Standard Template Library,标准模板库)是惠普实验室开发的一系列软件的统称。它是由Alexander Stepanov、Meng Lee和David R Musser在惠普实验室工作时所开发出来的。现在虽说它主要出现在C++中,但在被引入C++之前该技术就已经存在了很长的一段时间。 STL的代码从广义上讲分为三类:algorithm(算法)、container(容器)和iterator(迭代器),几乎所有的代码都采用了模板类和模版函数的方式,这相比于传统的由函数和类组成的库来说提供了更好的代码重用机会。在C++标准中,STL被组织为下面的13个头文件:<algorithm>、<deque>、<functional>、<iterator>、<vector>、<list>、<map>、<memory>、<numeric>、<queue>、<set>、<stack>和<utility>。以下笔者就简单介绍一下STL各个部分的主要特点。
标签: STL Standard Template Library
上传时间: 2016-06-20
上传用户:cylnpy
ACM Programming contest activity at Stony Brook is sponsored by a grant from Salomon Smith Barney. In the 2002 Greater New York Regional, Stony Brook s teams finished 2nd and 5th with 54 teams competing! In the 2003 Greater New York Regional, Stony Brook finished 4th of 60 teams. In the 2004 Greater New York Regional, three of Stony Brook s teams finished in the top 15 positions!
标签: Programming sponsored activity contest
上传时间: 2013-12-13
上传用户:wff
Of the password is: Server: "1." Client: + for the month of the date of the machine. Such as "2005/08/05", compared with the number "85" Database: "xzxq". I made the changes: 1, stations and customer-service once every 30 seconds to exchange information (to ensure continuous line) 2, computer services-an increase of the serial number 3, client-service to send the card serial number and send IP addresses to the service side 4, the desktop client by the embargo, since the definition of the icon to start the process faster (from the window Superman Code) 5, CS-shielding some function keys, but CTRL + ALT + DEL keys can not shield the hope that a revised modify these friends 6, there are some corners of Laws (such as title, etc.). Client desktop icon in the Settings page set up first class to enter FXZWN999 open on to add, delete icon button
标签: the password machine Client
上传时间: 2016-06-27
上传用户:xsnjzljj
Description: This program demonstrates a half-duplex 9600-baud UART using // Timer_A3 using no XTAL and an external resistor for DCO ROSC. DCO used for // TACLK UART baud generation. The program will wait in LPM4, echoing back // a received character using 8N1 protocol. On valid RX character, the // character is echoed back. // Using a 100k resistor on ROSC, with default DCO setting, set DCOCLK ~ 2MHz. // ACLK = n/a, MCLK = SMCLK ~2MHz DCOCLK
标签: using demonstrates Description half-duplex
上传时间: 2014-01-14
上传用户:cuiyashuo
给定一个自然数n,由n开始可以依次产生半数集set(n)中的数如下。 (1) n∈set(n); (2) 在n的左边加上一个自然数,但该自然数不能超过最近添加的数的一半; (3) 按此规则进行处理,直到不能再添加自然数为止。 例如,set(6)={6,16,26,126,36,136}。半数集set(6)中有6个元素。
标签:
上传时间: 2014-01-17
上传用户:rishian
1.开发环境: SunShine留言本v1.0所采用的开发环境为:J2SDK1.42+TOMCAT5.0+ACCESS2000 2.安装说明: SunShine留言本v1.0所有数据均采用数据库存储,采用JDBC连接池,直接连接数据库,不需要配置ODBC数据源即可直接运行。 3.运行环境: SunShine留言本v1.0是基于JSP/JavaBean开发的一套留言本系统,正常使用该软件您必须保证您的服务器满足如下要求: ①系统环境:J2SDK+TOMCAT或更高版本 ②数据库:ACCESS2000或更高版本 ③客户端:使用Windows系统+IE5.0或更高版本 4.管理留言: SunShine留言本v1.0默认的管理员ID:admin;管理员密码:adminSNDG 特别说明: SunShine留言本v1.0使用者只需将您网站的top.htm和bottom.htm文件替换SunShine留言本v1.0中的文件即可使其为您的网站服务。
标签: SunShine 1.0 ACCESS TOMCAT
上传时间: 2016-07-07
上传用户:金宜
MediaPlayer代码,部分代码,合适请用: import java.awt.* import java.awt.event.* import javax.swing.* import javax.media.* import java.io.* import java.util.* //为了导入Vector //import com.sun.java.swing.plaf.windows.* public class MediaPlayer extends JFrame implements ActionListener,Runnable { private JMenuBar bar //菜单条 private JMenu fileMenu,choiceMenu,aboutMenu private JMenuItem openItem,openDirItem,closeItem,about,infor private JCheckBoxMenuItem onTop private boolean top=false,loop //设定窗口是否在最前面 private Player player //Play是个实现Controller的接口 private File file,listFile //利用File类结合JFileChooser进行文件打开操作,后则与list.ini有关
标签: MediaPlayer 代码
上传时间: 2016-07-08
上传用户:爺的气质