-
8queen
在一个8×8国际象棋盘上,有8个皇后,每个皇后占一格;要求皇后间不会出现相互"攻击"的现象,即不能有两个皇后处在同一行、同一列或同一对角线上。问共有多少种不同的方法。
本算法采用一维数组来进行处理。数组的下标i表示棋盘上的第i列,a[i]的值表示皇后在第i列所放的位置。如:a[1]=5,表示在棋盘的第一例的第五行放一个皇后。(8 × 8 in a chess set, there s eight, each accounting for a Queen s grid request will not be any mutual between Queen s attack phenomenon, that can not have two Queen s in the same line, the same row or the same diagonal. Asked the total number of different ways. This algorithm uses one-dimensional array to be processed. Array subscript i said i chessboard first out, a [i] value that s in the first place i listed by location. Such as: a [1] = 5, said the first cases in the chessboard of the fifth line of a Queen s release.)
- 2007-12-15 22:24:44下载
- 积分:1
-
F4最终版
基于STM32F407的超声波模块测距,增量式编码器(1/30减速比)实时测速,PWM输出控制直流单机,并通过OLED显示实时数据,同时也通过串口打印(Based on STM32F407 ultrasonic module ranging, incremental encoder (1/30 deceleration ratio) real-time speed measurement, PWM output control DC single machine, and display real-time data through OLED, but also through serial port printing.)
- 2019-03-22 14:09:38下载
- 积分:1
-
9.ZY10A智能小车智能小车例程代码
说明: 智能小车的控制代码程序,做课设的时候用过(Control Code Program of Intelligent Car)
- 2019-05-31 20:09:37下载
- 积分:1
-
AdoObject
MFC使用ADO访问连接数据库,实现对数据的增删改查(MFC uses ADO to access a database connection, to achieve data CRUD)
- 2014-05-25 15:40:50下载
- 积分:1
-
sph流体模拟代码
sph流体模拟代码sph流体模拟代码sph流体模拟代码sph流体模拟代码sph流体模拟代码sph流体模拟代码sph流体模拟代码sph流体模拟代码sph流体模拟代码sph流体模拟代码sph流体模拟代码sph流体模拟代码sph流体模拟代码sph流体模拟代码sph流体模拟代码
- 2022-03-24 05:33:41下载
- 积分:1
-
CodeSmithBoat
CodeSmith三层构架开发通用模板,自动生成基础代码,很实用~(CodeSmith three-tier architecture to develop a common template, very useful ~)
- 2013-07-24 17:24:05下载
- 积分:1
-
网页开关响应
STM32F103C8+ENC8266+WIFI+FUHOME,物联网温湿度数据上传,网页开关响应。
- 2022-01-25 22:14:49下载
- 积分:1
-
单片机
/*============================================================
功能:使用12232液晶显示图片演示
==============================================================
硬件:TG12232B (122*32)模拟口线接线方式
连接线图:
--------------------------------------------------|
|DB0-----P0.0 | DB4-----P0.4 | RW-------P1.1 | A0--------P1.0 |
|DB1-----P0.1 | DB5-----P0.5 | RS-------P2.1 | V0接1K电阻到GND |
|DB2-----P0.2 | DB6-----P0.6 | E1-------P1.3 |
|DB3-----P0.3 | DB7-----P0.7 | E2-------P1.2 |
---------------------------------------------------
本程序源码只供学习参考,如有需要请联系作者。
[注:AT89x52使用22.1184M或11.0592M晶振,实测使用22.1184M或11.0592都可以]
编译平台:Keil uV2 7.08
- 2022-03-18 23:45:21下载
- 积分:1
-
Snake
MFC
- 2011-02-20 20:18:32下载
- 积分:1
-
PictureShadow
加载两张图片,将他们进行对比,不同的地方变为黑色并输出。(Loaded two pictures, they were compared to black and outputs of different places.)
- 2012-05-23 10:16:45下载
- 积分:1