-
Bit_Map
实现了手机Gps客户端,可以接受并解析Gps信号,显示在线地图和实时路况(Mobile Gps achieve client can accept and parse the Gps signal, display online maps and real-time traffic)
- 2010-08-02 11:07:56下载
- 积分:1
-
C# Winform网络围棋(可对战)
程序使用VS2015,.NET4.5,.NET 2.0以上都可以编译使用,无第三方组件,可生成32、64位。Socket网络传输,可以对战、旁观,围棋走棋规则基本全面,可直接对杀。围棋规则算法写代码太麻烦,直接参考了GreatVerveGo(是单机的)算法,感谢作者。程序包含客户端和服务端2各部分。图片文件在gooinDebugRes里面1、先启动服务端 goServer.exe服务端:地址为IPAddress[] addrIP = Dns.GetHostAddresses("192.168.0.104"); //ip地址端口51888,根据你的需要进行修改;进入服务端后点击“开始监听”。服务端定义://连接的用户System.Collections.Generic.List userList = new List();//监听端口private int port = 51888;//走棋判断int[] GameRoom = new int[255]; //房间号int[] GameUser = new int[255]; //房间人数;int[] GameStat = new int[255]; //走棋状态:1-等待、2-准备、3-开始、4-旁观int[] GameReday = new int[255]; //走棋准备状态//旁观 获得走棋信息string lookuser = "";2、打开客户端 goo.exe这里直接设置了进入到房间“0”,进入后显示“等待其他人加入”,先进房的执黑旗,按钮不可用;当有第2个人进入后,执白棋,按钮显示“准备”;双方都点击“准备”后,进入对局;后面再有人进入为旁观者,能看见双方对局信息。房间都是“0”。地址:client = new TcpClient("192.168.0.104", 51888); //定义服务器端ip地址和端口,与服务器端定义要一致根据你的需要进行修改;客户端定义:private int[,] Qpan = new int[24, 24]; //棋盘数组private string SendLook = null; //发送给旁观者的对局信息private const int Qz_Null = 0; //没有棋子private const int Qz_Black = 1; //黑子private const int Qz_White = 2; //白子private const int Max_Qpan = 23; //棋盘最大路数private int[,] TmpA_Qpan = new int[24, 24]; //临时存储棋盘private int[,] TmpB_Qpan = new int[24, 24];//临时存储棋盘private int[,] Tmp_Qpan = new int[24, 24];//临时存储棋盘private int Current_Go = 1; //当前棋子颜色private int Qpan_Count = 19; //当前棋盘路数private int Rame; //气数private int Die_Num; //死子数private bool _Attack = false; //是否打劫private int Attack_X = 0; //打劫位置private int Attack_Y = 0; //打劫位置private Panel g_Hei; //鼠标移动 黑块private Panel g_Bai; //鼠标移动 白块private Panel Fit_Hei; //最后落子标记 黑private Panel Fit_Bai; //最后落子标记 白private Panel[,] QzH = new Panel[20,20]; //黑棋子private Panel[,] QzB = new Panel[20,20]; //白棋子int LastFitX = 0; //给旁观最后落子位置int LastFitY = 0; //给旁观最后落子位置int LastHB = 0; //给旁观最后落子颜色Point Mouseoff; //鼠标位置bool go_play = false; //能否走棋int Select_Qzi = 0; //是黑还是白,1-黑,2-白int ReceiveHB =1; //接收到的棋子颜色函数://初始化棋盘、棋子private void InitQpan()//判断该谁走棋private void Judge_HB()//显示棋子private void ShowQz(int i, int j, int QzHB)//重置棋盘棋子private void Rest_Qpan()//备份棋盘棋子private void Qpan_Backup()//恢复棋盘棋子private void Qpan_Restore()//刷新棋盘棋子private void Qpan_Refresh(int QzHB)//计算棋子的气数底层函数private void Base_Calc(int i, int j, int QzHB)//计算气数private void Calc_Ream(int m, int n, int QzHB)//计算气数接口private void Calc_Interface(int QzHB)//落子处理,判断打劫、打n还1、吃掉对方棋子private void Falling(int xx, int yy)//设置打劫private void Set_Attack(int i, int j)//最后落子标记private void Fit_Flag(int xx, int yy)//旁观者最后落子标记private void LookFit_Flag(int Qhb, int xx, int yy)//对方走棋显示在己方并判断打劫、打n还1、吃掉对方棋子private void Opp_Falling()3、跨线程调用封装在CrossThreadCall.cs4、时间有限,程序没有做计算胜负,没有做掉线处理。基本规则有了,其他的就是套接字变来变去,需要新功能自己添加。只是一个初学练习,更多初学资料到我的博客http://www.cnblogs.com/qiaoke/
- 2017-03-12下载
- 积分:1
-
Here is how to use C# to scan through files recursively in a computer and add th...
Here is how to use C# to scan through files recursively in a computer and add them to a TreeView control. The result will be a C# treeview with folders and files. There are two main functions to accomplish the task. One for scanning directions. The other for creating nodes and child nodes in the TreeView. Both are easily done with recursive C# functions-Here is how to use C# to scan through files recursively in a computer and add them to a TreeView control. The result will be a C# treeview with folders and files. There are two main functions to accomplish the task. One for scanning directions. The other for creating nodes and child nodes in the TreeView. Both are easily done with recursive C# functions..
- 2023-03-11 19:10:04下载
- 积分:1
-
18f67k40.X
日常生活中经常见到的广告牌以LED流动发光的形式来增加效果,该文件就包含了流水灯的编程代码。(The billboards that are often seen in daily life increase the effect in the form of LED luminous light. The file contains the programming code of the water lamp.)
- 2018-04-17 14:58:18下载
- 积分:1
-
NVP6134B AHD RX 芯片支持300MP摄像机 NVP6134B_Product_Brief
NVP6134B AHD RX 芯片支持300MP摄像机(The NVP6134B AHD RX chip supports 300MP cameras)
- 2020-12-18 10:39:10下载
- 积分:1
-
DES_3DES
DES算法是这样工作的:如Mode为加密,则用Key 去把数据Data进行加密, 生成Data的密码形式(64位)作为DES的输出结果;如Mode为解密,则用Key去把密码形式的数据Data解密,还原为Data的明码形式(64位)作为DES的输出结果。在通信网络的两端,双方约定一致的Key,在通信的源点用Key对核心数据进行DES加密,然后以密码形式在公共通信网(如电话网)中传输到通信网络的终点,数据到达目的地后,用同样的Key对密码数据进行解密,便再现了明码形式的核心数据。这样,便保证了核心数据(如PIN、MAC等)在公共通信网中传输的安全性和可靠性。 通过定期在通信网络的源端和目的端同时改用新的Key,便能更进一步提高数据的保密性,这正是现在金融交易 网络的流行做法。 下面是DES原理及实现步骤,以及VC++关于DES加密解密的详细源程序(Complete source code, calling process, detailed explanation of the principle)
- 2020-06-19 20:20:01下载
- 积分:1
-
MFC c++开发的运动控制卡程序
运动控制有很多种方法,51单片机,avrd,msp430单片机,甚至是arm7,arm9.arm11,还有最新的stm32单片机,然而这都有一些缺陷,算法需要自己来写,运动控制卡包含许多控制算法,点位运动,插补运动等,大大简化了控制算法,运用在数控系统,机器人系统比较多,这个vc源码让初学者对mfc C++编写控制卡程序有一个基本的认识。
- 2022-06-21 11:56:58下载
- 积分:1
-
UltimateToolBox93
UltimateToolBox93代码、文档、例子(UltimateToolBox93)
- 2009-03-22 12:58:29下载
- 积分:1
-
RevSubStr
长度为N(N很大)的字符串,求最长回文串(Length N (N large) strings, find the longest palindrome string)
- 2013-09-29 11:52:47下载
- 积分:1
-
ad1018
ADS1018驱动程序,实测可用,单次触发。才几电压很稳(ads1018,can simple valote, test passed.)
- 2019-06-26 11:18:32下载
- 积分:1