Location:
Search - 160*160
Search list
Description: Given an array A[1, n] of n ≥ 1 integers the problem is to rearrange the elements of A
so that the resulting array is ordered (or sorted), that is, A[1] ≤ A[2] ≤ ∙ ∙ ∙ A[n].
: The program uses the file descriptors to take input array from input file
and to give the resultant index and comparisons onto an output file.
Platform: |
Size: 1024 |
Author: nuke88 |
Hits:
Description: 使用STM32F103RBT6驱动UC1698控制芯片的160*160黑白点阵液晶的程序,实现汉字和英文的显示功能,文字显示有正常、反显、下划线三种效果。 另有任意位置画点、任意两点画线的功能。使用欣瑞达电子有限公司的XRD160160D型号的LCM。该款液晶被广泛应用于电力行业。-Use STM32F103RBT6 drive UC1698 control chip dot matrix LCD 160* 160 black and white process, to achieve the display Chinese characters and English, the text showed normal, anti-evident, underlined three effects. Another drawing point at any position, any two points draw lines in the function. Use Xinrui Da Electronics Co., Ltd. XRD160160D model LCM. Which LCD is widely used in power industry.
Platform: |
Size: 18432 |
Author: |
Hits:
Description: 这个文件夹里是多个用户的通信程序源代码和编译后的程序文件
使用方法:
先运行server文件
例如以本机为服务器地址,监听端口为7999,最大连接数为3(最大支持用户数)
超过最大连接数的连接会自动关闭,被拒绝接入。
./server_2 7999 3
然后输入服务器的名字,例如输入admin
然后等待用户连接(此时也可以输入帮助命令,连接并没有阻塞程序)
(一旦有用户连接,服务器端会提示当前谁进入,以及目前在线用户数)
运行client文件
在已知服务器地址为ip6_addr和端口号的情况下
./client ip6_addr 7999
然后输入用户的名字(此时服务器端会有相关的提示信息)
此时可以根据提示进行操作。例如,输入help,查看相关命令,查看谁在线上,开始对话等。-This folder is a multiple user communication program source code and compile the program files
How to use:
First run the server file
For example, the machine as the server address, listening port 7999, the maximum number of connections to 3 (maximum support users)
Exceed the maximum number of connections, the connection will automatically be closed, access is denied.
./server_2 7999 3
Then enter the name of the server, for example, enter the admin
And then waits for the user is connected (can also enter the help command, connected and not blocking the program)
(Once the user connects, the server side will be prompted to this who entered, and the number of online users)
Run the client file
In the case of known the server address ip6_addr and port numb
Platform: |
Size: 16384 |
Author: lay |
Hits:
Description: 一个大小为3的缓冲区,初始为空
2个生产者
– 随机等待一段时间,往缓冲区添加数据,
– 若缓冲区已满,等待消费者取走数据后再添加
– 重复6次
3个消费者
– 随机等待一段时间,从缓冲区读取数据
– 若缓冲区为空,等待生产者添加数据后再读取
– 重复4次
说明:
显示每次添加和读取数据的时间及缓冲区的状态
生产者和消费者用进程模拟。-A buffer of size 3, is initially empty
Two producers
- Wait for a random time, to add the data in the buffer,
- If the buffer is full, and then wait for the consumers to get data added
- Repeat 6 times
3 consumers
- Wait for a random time, read data from the buffer
- If the buffer is empty, waiting for producers to add data can then be read
- Repeated four times
Description:
Displayed every time you add and read data time and buffer status
Producers and consumers with process simulation.
Platform: |
Size: 3072 |
Author: 王刚 |
Hits:
Description: Hibernate基本概念
1)Hibernate是什么,有什么作用和好处
Hibernate是一个数据库访问框架,用于实现对数据库的增删改查操作。使用Hibernate框架可以简化数据库访问操作,要程序员将更多的经历放在业务层编写上。
原有JDBC操作数据库存在一些问题,主要有以下几个方面
a)需要编写大量复杂的SQL语句
b)需要设置大量的SQL参数或者将ResultSet取值封装成实体对象
c)当数据库移值时,需要修改部分SQL语句和操作
使用Hibernate框架可以解决以上问题。
2)Hibernate实现原理
设计原理:ORM(Object Relation Mapping)对象关系映射。意思是将程序中的实体对象和关系数据库表中的一行记录进行映射。这样在程序中使用该工具就可以将一个对象写入数据表,或者将数据表记录自动封装成一个对象返回。
可以这样理解,利用Hibernate可以将user对象直接更新到数据表中;查询时可以将数据表记录以user对象形式返回。中间的JDBC+SQL操作对程序员来说不用关心,在Hibernate底层封装好了。
同类框架还有一些,比如iBATIS,JPA等。-Hibernate basic concepts
1) Hibernate is, what role and benefits
Hibernate is a database access framework for the realization of the database CRUD operations. Using Hibernate framework can simplify database access operations, to more experienced programmers will be placed on the preparation of the business layer.
Original database JDBC operations there are some problems, mainly in the following aspects
a) the need to write a lot of complex SQL statements
b) the need to set a large number of SQL parameters or values will be packaged into a solid object ResultSet
c) When the database shift values , you need to modify some SQL statements and operations
Using Hibernate framework
Platform: |
Size: 41984 |
Author: 说法 |
Hits:
Description: 如何使用Myeclipse生成映射文件和实体类?
映射文件和实体类《=== ===》DB
1)如何根据DB生成实体类和映射文件
=========利用Myeclipse追加Hibernate框架========
a.先在DB Browser窗口建立一个与数据库的连接
b.新建一个工程,点工程名右键-->Myeclipse-->Add Hibernate....
c.选择Hibernate框架版本
d.生成Hibernate.cfg.xml文件
e.设置Hibernate.cfg.xml连接参数
f.生成HibernateSessionFactory工具类(HibernateUtil)
===利用Myeclipse根据表生成实体类和映射文件===
g.进入DB Browser窗口,找到数据表
h.数据表右键,选择Hibernate reverse Engin...
i.选择要生成的文件hbm.xml,POJO,DAO(一般不选)
j.选择映射类型,一般选择Hibernate Types
k.点表名可以设置实体类名和主键生成方法
l.完成-How to use Myeclipse generate a map file and the entity class?
Mapping file and entity class "=========" DB
1) How to generate entity classes based on DB and mapping files
Myeclipse additional use Hibernate framework ========= ========
a. first in the DB Browser window to establish a connection to the database
b. a new project, the project name right point-> Myeclipse-> Add Hibernate ....
c. Select the Hibernate framework version
d. generating Hibernate.cfg.xml file
e. Setting Hibernate.cfg.xml connection parameters
f. generate HibernateSessionFactory tools (HibernateUtil)
Platform: |
Size: 410624 |
Author: 说法 |
Hits:
Description: Function Description: This function is generic fast Fourier transform C language function, portability, and the following sections failing
Lai hardware. This function takes the form of a complex number of the Commonwealth, the input is a natural sequence of complex
Number (input real number is so complex imaginary part is 0), the output of the FFT transform the natural order of
Plural-Function Description: This function is generic fast Fourier transform C language function, portability, and the following sections failing
Lai hardware. This function takes the form of a complex number of the Commonwealth, the input is a natural sequence of complex
Number (input real number is so complex imaginary part is 0), the output of the FFT transform the natural order of
Plural
Platform: |
Size: 2048 |
Author: chong |
Hits:
Description: 计算每副牌的分值:每副牌有个原始大小(即排除对子,顺子,金花,顺金,筒子的大小),再
每张牌的分值为一个2位数,不足2位的补前导0,例如 A :14,‘10’:10,’2‘:’02‘,’k‘:13,’7‘:07
将3张牌按点数大小排序(从大到小),凑成一个6位数。例如’A27 :140702,‘829’:090802,‘JK8’:131108,‘2A10’:141002
例外,对于对子要将对子的位数放在前两位(后面会看到为什么这么做)。例如‘779’:070709,‘7A7’:070714,‘A33’:030314
现在的分值是一个6位数,将对子设为一个原始值加上10*100000的值,现在为一个7位数。例如‘779’:1070709,‘7A7’:1070714,‘A33’:1030314
对于顺子,将结果加上20*100000.。例如‘345’:2050403,‘QKA’:2141312,‘23A’:2140302
对于金花,将结果加上30*100000。例如‘Spade K,Spade 6,Spade J :3131106
因为顺金的时候其实是金花和顺子的和,所以顺金应该是50*10000。 例如‘Spade 7,Spade 6,Spade 8 :5080706
对于筒子,将结果加上60*100000。例如’666‘:6060606,’JJJ‘:6111111
3“ 比较两幅牌的大小(用所计算的分值来比较)
就这么简单-Scores calculated for each of the cards : Each of the cards have the original size ( ie excluding pairs, straights , Jinhua, Shun-Jin , cheese the size ) , and then
The score of each card a 2-digit , less than two s complement leading 0, for example A : 14, 10 : 10, 2 : 02 , k : 13, 7 : 07
The three cards in descending order according to points ( descending ) , make up a six digits. For example A27 : 140702, 829 : 090802, JK8 : 131108, 2 A10 : 141002
Exception to the pair on the first two pairs of digits ( you ll see later how to do so ) . For example 779 : 070709, 7 A7 : 070714, A33 : 030314
Now the score is a six-digit , it will set an original value plus the sub- 10* 100000 value , is now a seven digits. For example 779 : 1070709, 7 A7 : 1070714, A33 : 1030314
For the straight , the result plus 20* 100000 . For example 345 : 2050403, QK
Platform: |
Size: 1024 |
Author: 刘朝阳 |
Hits:
Description: 五子棋。界面不太友好。。。
代码里有注释,相应的改一下就可以有随机下子,人工下子和电脑下子三种模式的六种组合。
位置一位置二中调用的函数:
电脑下 diannaoxia(a,35,48)
随机下 suijixia(a,35)
人下 renxia(a,35)
其中43 48 什么的都是阿斯托码值。。35对应 # 43对应 + 48对应 0 诸如此类为显示棋盘时用的符号
然后注释 空白 的是宏定义的棋盘上的空白位置。。。机机对战时用空白比较好看。。。人下的话可以用 43 ,比较好数格子-Backgammon. Interface is not very friendly. . .
Code annotated, the corresponding change can have a random Now, six combinations of computers and artificial erupted erupted in three modes.
Position a position to call two functions:
Computer diannaoxia under (a, 35,48)
Random under suijixia (a, 35)
Person under renxia (a, 35)
What is one of 4348 Astor code value. . 35 corresponding to the # 43 corresponds to + 48 corresponds to 0 like the display board for the use of symbols
Then note the pos
Platform: |
Size: 234496 |
Author: 李程序 |
Hits:
Description: pl0拓展文法的编译器,包含实验报告、源码和测试程序。对PL0原编译器进行了以下的扩充:1. 增加以下保留字
else(elsesym), for(forsym),to(tosym),downto(downtosym),
return(returnsym),[(lmparen),](rmparen)
2. 增加了以下的运算符:
+=(eplus),-=(eminus),++(dplus),--(dminus)
取址运算符&(radsym),指向运算符@(padsym)
3. 修改单词:修改不等号#为<>
4. 扩充语句:
(1)增加了else子句
(2)增加了for语句
5. 增加运算:
(1).++运算
(2).--运算;
(3).+=运算;
(4).-=运算;
(5).&取址运算;
(6).@指向运算;
6. 增加类型:
(1).增加多维数组a[i1][i2][i3]……[i(n-1)][i(n-2)][in]
(2).增加指针类型(任何变量都能存放指针,但不支持指针的指针,
如b:=@@a应该改写为c:=@a,b:=@c)
7. 将过程procedure扩展为函数:
(1).允许定义过程时在其后加参数(var a, var b,……..,var n)
(2)允许通过指针向函数形式参数传地址;
(3)允许返回值;可以用 a:=p(a,b,c….,n) 返回
-pl0 expand grammar compiler , including lab reports , source code and test procedures. PL0 compiler for the original expansion of the following : (1) Add the following reserved words
else (elsesym), for (forsym), to (tosym), downto (downtosym),
return (returnsym), [(lmparen),] (rmparen)
(2) increase the following operators:
+ = (eplus),- = (eminus),++ (dplus),- (dminus)
Address-of operator & (radsym), pointing operator @ (padsym)
3 Modify word : Modify inequality# is <>
4 Expansion statement:
( 1 ) increasing the else clause
( 2 ) increasing the for statement
5 increase in computing :
(1 )++ operator
(2 )- operation
(3 )+ = operator
(4 )- = operator
(5 ) & check the site operator
(6 ) @ pointing operation
6 in
Platform: |
Size: 658432 |
Author: 王浩 |
Hits:
Description: /*
功能:
输入参数:int*p 指向二维数组的首地址,该二维数组第0行的两个数分别表示:总钱数<30000,和希望购买物品的个数<25
该数组从第1行到第m行(1<=j<=m)中给出了编号为j的物品的基本数据,每行有2个非负整数,
表示该物品的价格(<=10000)和该物品的重要度(1~5)。
GetResult表示不超过总钱数的物品的价格与重要度乘积的总和的最大值(<100000000)。
不需做入参检查,测试用例可以保证~
例如:4000 8(第0行)
821 3 (第1行)
422 5
458 5
500 3
200 2
430 4
530 3
239 3
则表示 总钱数为4000,希望购买物品个数为8个,因此从第1行到第8行表示编号为j的物品的价格及物品的重要度。
返回值:无
*/-/*
Features:
Input Parameters: int* p points to the first address of a two-dimensional array, the number of the two-dimensional array of row 0, respectively: total amount of money <30,000, and wants to buy the number of items <25
The array from the first row to row m (1 <= j <= m) gives the number of basic data items j, each line has two non-negative integers,
Indicates the price of the item (<= 10000) and the importance of the item (1-5).
Rates and said maximum degree of importance GetResult not exceed the total amount of money of the sum of the product of the article (<100000000).
The Senate did not need to check, test cases can guarantee ~
Platform: |
Size: 1024 |
Author: lkl |
Hits:
Description: Ø Linux编程风格
Ø Linux下IDE的使用
Ø Linux下使用GNU cc开发应用程序
Ø Linux程序的调试
Ø Linux下使用RCS/CVS来管理源程序
Ø Linux下软件打包
-Ø Linux programming style
The use of Ø under Linux IDE
Ø under Linux using GNU cc application development
Ø Linux program debugging
Ø under Linux using RCS/CVS to manage the source program
Ø under Linux software package
Platform: |
Size: 3148800 |
Author: 小皮哥 |
Hits:
Description: 树回归:对复杂的关系建模。一般可以分为两种,一种是回归树,一种是模型树,
主要的区别在于对于叶节点的建模方式,回归树使用分段常数,模型树使用线性回归方程。
可以使用剪枝技术对于可能过拟合的树进行剪枝,剪枝一般分为预剪枝和后剪枝。
回归树和模型树都是2元树,每次总是选择最好的分割方式,分成两部分。
这个是自己写的Python语言的CART树回归程序,基本实现了其原理,注释比较多。-Tree Regression: modeling of complex relationships. Can generally be divided into two types, one is the regression trees, one is the model tree,
The main difference is that the modeling of leaf nodes, using a piecewise constant regression trees, tree model using linear regression equation.
You can use pruning techniques may be too fit for tree pruning, pruning pruning is generally divided into pre-and post-pruning.
Regression trees and model trees are two yuan tree, each division always choose the best way, is divided into two parts.
This is the Python language to write their own CART tree regression program, the basic realization of its principles, comment more.
Platform: |
Size: 2048 |
Author: iihaozl |
Hits:
Description: 自己工作需要,需输出可调脉宽、频率的PWM波,网上找的资料都是介绍AVR快速PWM的,没有使用AVR相頻修正实现PWM控制的。就自己查资料,仿真、做板子。自己做了一个,调试通过了,如果需实际使用,部分参数需稍加修正。
功能:AVR ATmega16 相頻修正PWM波实现
涉及模块:7Seg(7段数码管驱动)
键盘扫描(包括长按和短按,稍加修改可实现多键检测)
定时器0,2的定时使用
定时器1的相頻修正PWM输出
PWM频率范围:0.1-99.9Hz,占空比:0.1-99.9可调
ATmega16 工作频率:内部RC 8MHz
仿真工具:Proteus
编译工具:WinAVR-Own work needs, the need adjustable output pulse width, frequency PWM wave, are introduced Internet to find information fast PWM AVR, AVR without using phase and frequency correct PWM control to achieve. Check the information on their own, simulation, do the board. Own one, debugging, and if need practical use, some parameters need a little correction.
Function: AVR ATmega16 phase and frequency correct PWM wave realization
Involves modules: 7Seg (7 segment LED driver)
Keyboard scanning (including long press and short press, slightly modified to achieve multi-key detection)
Timer timing using 0,2
Timer phase and frequency correct PWM outputs 1
PWM Frequency range :0.1-99 .9 Hz, Pulse Width: 0.1-99.9
ATmega16 Operating frequency: I
Platform: |
Size: 34816 |
Author: xiaoye |
Hits:
Description: OA管理后台源码
功能介绍:
这是一个公司内部的小型的oa系统,主要实现对公司人员的管理。公司办公物品的管理与维护。还有财务管理。
功能菜单:
公告:公告栏 公告页
人员:人员维护 新增人员 人员审核
财务:财务记账 财务明细 财务报表 银行列表 账户金额 消息中心
办公:物品维护 入库处理 库存查询 出库处理 内部调拨 入库查询 出库查询 申领物品
设置:财务设置 密码修改 入库方式 物品分类
注意:
开发环境为Visual Studio 2010,数据库为SQL Server 2005,数据库文件在DB_51aspx文件夹中附加就行。
用户名密码均是:51aspx-OA management background source
Features:
This is a small oa system within a company, the main achievement of the company s management staff. Management and maintenance company office items. There are financial management.
Menu:
Notice: Bulletin board Bulletin page
Staff: staff maintain additional personnel staff review
Finance: Financial accounting Financial details of the financial statements of bank accounts list the amount of message center
Office: Item Maintenance storage processing inventory check out the library handle internal storage allocation check out the database query to apply article
Setting: Finance set a password to modify the way storage items classified
Note:
Development environment for Visual Studio 2010, the database is SQL Server 2005, the database file on the line in the file folder DB_51aspx additional
Platform: |
Size: 6611968 |
Author: kfs |
Hits:
Description: * <课程代码>0301361</课程代码>
<课程名称>口语(2)</课程名称>
<教师>外教2</教师>
<教室名称>2205</教室名称>
<开始周>1</开始周>
<结束周>16</结束周>
<上课班级>03001-004</上课班级>
<行政班级>2009132,2009133,2009134</行政班级>
<人数>93</人数>
<总学时>64</总学时>
<教师代码>12</教师代码>
<周次>1</周次>
<星期>1</星期>
<上课时间>2</上课时间>
<教室代码>16</教室代码>
*/-* <Course code> 0301361 </ Course code>
<Course Name> Speaking (2) </ course name>
<Teacher> Teacher 2 </ Teacher>
<Class name> 2205 </ classroom name>
<Start Week> 1 </ Start Week>
<End Week> 16 </ End Week>
<Class class> 03001-004 </ class class>
<Administrative class> 2009132,2009133,2009134 </ executive class>
<Number> 93 </ number>
<Total hours> 64 </ total hours>
<Teacher code> 12 </ Teacher code>
<Week> 1 </ Week>
<Weeks> 1 </ week>
<Class time> 2 </ class time>
<Classroom code> 16 </ classroom code>
* /
Platform: |
Size: 1024 |
Author: tan |
Hits:
Description: 从主机内存的指定地址 p_dst 开始,把 num 个数据-A This program provides two functions apply to 24C01 to 24c512
1. Function Description:
1) void wt24c (uchar* p_rsc, uint ad_dst, uint num)
Function: host memory the specified address p_dst start num writing data to the address specified ad_rsc 24Cxx chip start address space
2) void rd24c (uchar* p_dst, uint ad_rsc, uint num)
Function: starting at the specified address ad_rsc 24Cxx chip reads num bytes of data to the host address specified p_dst memory starting to go
2. The number one time to write and read 24Cxx data num theoretically unlimited, but in fact determined by the maximum address space 24Cxx chip and ad_rsc
3. If the write fails, the system error flag register will mark the preset error number preset error num
Platform: |
Size: 8192 |
Author: a7305 |
Hits:
Description: 该软件是GCMS的门户版本。
上传所有文件,建Mysql数据库,导入表gcms.sql,打开\_GCMS\Configs\online.inc.php中的
DEFAULT_DB => array(
DRIVER => MySql , //数据库驱动
MASTER =>array(
HOST => localhost , //数据库主机
USERNAME => 你的数据库用户名 , //数据库用户名
PASSWORD => 你的数据库密码 , //数据库密码
DBNAME => 你的数据库名 , //数据库名
CHARSET => utf8 , //数据库编码
TABLEPREFIX => gcms_ , //数据表前缀
PCONNECT => false, //是否开启数据库长连接
ENGINE => //数据库引擎
),
按要求填写连接数据库。
online.inc.php保存时要注意,用utf8编码保存
后台登陆地址:域名/index.php?m=Admin&c=Index&a=login
用户名/密码:goodtext.org
-The software is GCMS version of the portal.
Upload all files, build Mysql , import tables gcms.sql, open \ _GCMS \ Configs \ online.inc.php in
DEFAULT_DB => array (
DRIVER => MySql , // -driven
MASTER => array (
HOST => localhost , // host
USERNAME => Your user name , // username
PASSWORD => Your password , // password
DBNAME => your name , // name
CHARSET => utf8 , // coding
TABLEPREFIX =>
Platform: |
Size: 2414592 |
Author: ampudn23 |
Hits:
Description: 1. 在实验四 2.a与2.b所定义的P类(点的抽象)和颜色类Color类的基础上,定义像素类。
a. 声明P类表示一个点的x轴和y轴坐标,声明构造方法和拷贝构造方法,
声明若干get()和set()方法获得或设置坐标,声明move()方法将当前坐标
移动若干位置。
b. 声明颜色类Color
一种颜色由(红,绿,蓝)三元色值组成,称为RGB值。 一个int整数(四个
字节)可表示一种颜色,结构为:最高字节全1,其后3字节分别存储“红、
绿、蓝”单色值,单色值范围是0 ~ 255。例如,0xff00ff00表示绿色,RGB值
为(0,255,0)。声明构造方法和拷贝构造方法,声明多个get()和set()方法获得
或设置该颜色的RGB值。
c. 声明像素类Pixel继承Point类,像素是一个带颜色的坐标点。
-1. On the basis of experiments with four 2.a 2.b defined P class (point of abstraction) and color class Color class, the definition of a pixel class.
a. Statement P class represents a point of x-axis and y-axis coordinates, declare constructor and copy constructor,
Statement number of get () and set () method to get or set the coordinates, declare move () method of the current coordinates
Moving several locations.
b. declare color category Color
A color the (red, green, blue) values of three primary colors, known as the RGB value. An int integer (four
Platform: |
Size: 13312 |
Author: 李雪歌 |
Hits:
Description: 计算机原理与汇编教学课件
参考教材:《计算机组成原理》(第2版) 唐朔飞
高等教育出版社 2008年
《计算机组成原理》 蒋本珊 清华大学出版社 2004年
《计算机组成原理与汇编语言程序设计》
俸远祯等 电子工业出版社 1999年
《计算机组成和设计 硬件/软件接口》(第2版)
David A. Patterson等著 清华大学出版社 2003年
《计算机组成与体系结构》(第3版 网络版)-Computer Principles and Compilation
Principles of Computer Organization (2nd Edition) Tang Shuofei
Higher Education Press
Principles of Computer Organization Jiang Benshan Tsinghua University Press, 2004
Principles of computer composition and assembly language programming
&
Platform: |
Size: 5965824 |
Author: 优那那 |
Hits:
« 12
3
4
5
6
7
8
9
10
...
50
»