在linux下用c语言利用信号机制完成了一个弹球的小游戏,代码如下:
bounce.h
/* bounce.h */
/* some settings for the game */
#define BLANK ' '
#define DFL_SYMBOL 'o'
#define TOP_ROW 5
#define BOT_ROW 20
#define LEFT_EDGE...
分类:
系统相关 时间:
2014-10-21 12:27:14
阅读次数:
511
1 public class Q1_7{ 2 3 public static void SetZero(int[][] matrix){ 4 5 boolean [] row= new boolean[matrix. length]; 6 7 boolean[] column =new ...
分类:
其他好文 时间:
2014-10-20 21:09:58
阅读次数:
226
案例:Slave启用了复制过滤-replicate-do-db=db1(ROW复制模式),具体过滤注意事项可以参考我之前的blogMySQL复制过滤注意事项,在Master上执行altertabledb1.tb1addxxx,Slave相关tb1表没有生效;Slave复制正常,errorlog没啥信息,我印象当中DML(insert,delete,update)操作u..
分类:
数据库 时间:
2014-10-20 19:39:19
阅读次数:
190
mysql的INNODB引擎锁的原理是怎样的,来做个试验。
mysql> SELECT VERSION();
+-----------+
| VERSION() |
+-----------+
| 5.5.20 |
+-----------+
1 row in set (0.00 sec)
CREATE TABLE test
(
a INT(5),
b V...
分类:
数据库 时间:
2014-10-20 17:18:43
阅读次数:
234
JdbcTemplate的queryForMap方法报错 queryForMap方法使用不当,就会出错,使用方式如下: The queryForMap method in JdbcTemplate only expects a single row to be returned, The retur...
分类:
数据库 时间:
2014-10-20 17:00:22
阅读次数:
297
bootstrap 2.3版与3.0版重要类的改变对比Bootstrap 2.xBootstrap 3.0.container-fluid.container.row-fluid.row.span*.col-md-*.offset*.col-md-offset-*.brand.navbar-bran...
分类:
其他好文 时间:
2014-10-20 16:46:41
阅读次数:
158
一、手工查询得出名次select * ,select count(*)+1 from T2 where T2.[成绩] > T1.[成绩] as 名次 from T1结果:12335二、SQL Server 2005 的排序函数 ROW_NUMBER、RANK、DENSE_RANK1.ROW_NUM...
分类:
数据库 时间:
2014-10-20 13:06:40
阅读次数:
197
protected void gvInfo_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { ...
分类:
其他好文 时间:
2014-10-19 22:43:07
阅读次数:
202
Atitit.mssql 数据库表记录数and 表体积大小统计
1. EXEC sp_MSforeachtable "EXECUTE sp_spaceused '?'"
最后一种方法是利用隐藏未公开的系统存储过程sp_MSforeachtable
CREATE TABLE #temp (TableName VARCHAR (255), Row...
分类:
数据库 时间:
2014-10-19 00:06:56
阅读次数:
275
Make sure the Cursor is initialized correctly before accessing data from it 详细错误是:java.lang.IllegalStateException: Couldn't read row 0, col 2 from Cur...
分类:
移动开发 时间:
2014-10-17 23:17:55
阅读次数:
8377