搜索资源列表
约瑟夫
- #include void main() { int i,j,k,a[31],n=0; for(i=0;i<=30;i++) a[i]=0; k=1; for(i=1;i30) k=1; } a[k++]=1; if(k>30) k=1; //n++; } printf("%d\n",k); for(i=1;i<=30;i++) printf("%d ",a[i])
H.264编码算法的完整源代码
- H.264编码算法的完整源代码 文件:VideoEncoderX264.h class CVideoEncoderX264 : { public: CVideoEncoderX264(void); ~CVideoEncoderX264(void); virtual bool Connect(CVideoEnDecodeNotify* pNotify, const CVideoEnDecodeItem& Item); virtual void Release(void);
红外接收
- 430红外接收 #include #include #include #include #include "xtype.h" #define IRDA (uint8)0x01 //P1_0 uint8 ifg; uint8 index=0,value; uint8 bitValue; uint8 flag; uint8 Buf[1
中科杯 作品
- 中科杯 作品的模块,直接用,绝对好! class CZhuCe : public CDialog { DECLARE_DYNAMIC(CZhuCe) public: CZhuCe(CWnd* pParent = NULL); // 标准构造函数 virtual ~CZhuCe(); // 对话框数据 enum { IDD = IDD_LOGIN_ZHUCE }; protected: virtual void DoDataExchange(CDa
高校工资管理系统
- 高校工资管理系统,课程设计,用C++编写 void outIformation();//提示主菜单信息函数 void outIformation2();//输出子菜单(添加职员信息)选项函数 void outIformation3();//输出子菜单(查询职员信息)选项函数 void outIformation4();//输出子菜单(删除职员信息)选项函数 void outIformation()//输出主菜单选项函数 { cout<<"\n\n\n&q
AVL树实现
- 纯C实现的AVL树,Demo是MFC的。非递归的遍历,完全支持添加、删除和搜索节点。设计灵活,容易扩展。以下是API struct tagAvlTree; typedef struct tagAvlTree AvlTree; struct tagAvlNode; typedef struct tagAvlNode AvlNode; struct tagAvlNode { AvlNode *left; AvlNode *right; int32_t height;
征服4.0马端源码
- using System; using System.Collections.Generic; using System.Text; namespace NewestCOServer { public class Cryption { class CryptCounter { UInt16 m_Counter = 0; public byte Key2
用D3D模拟地月系
- 一、建立空窗体 新建一个工程,添加引用,并导入名称空间。 加入一个设备对象变量: private Microsoft.DirectX.Direct3D.Device device = null; 添加初始化图形函数,并在这里面对设备对象进行实例化: public void InitializeGraphics() { PresentParameters presentParams = new PresentParam
SMS扩展配置.rar
- 1、将jre文件夹复制到你本机所在的JDK下覆盖掉全部jre文件夹 2、将lib文件夹复制到你项目所在的lib,添加对应lib import org.smslib.IOutboundMessageNotification; import org.smslib.Library; import org.smslib.MessageEncodings; import org.smslib.MessageProtocols; import org.smslib.OutboundMessa
brew window manager
- Objective This topic describes how to create a windowed application that will share the display with other applications. Requirements Brew® MP windowed applications need to be written differently than traditional Brew MP applications.
isag测试代码
- ublic class TestSendSms { public static void main(String args[]) { System.out.println(sendSms()); } public static String sendSms()
多级中文菜单C51
- /**********************************多级菜单LCD显示********************************************/ /*********作者:王胜文。QQ:95201972 email:nunk@163.com 希望与大家交流2007。08。03**********/ #include #include #include #include #include void (*current_operation_index)();// u
位图全色生操作类,指纹识别,角点检测,锐化,反色等操作类C++
- 指纹识别中的一个步骤分支点检测的实现,使用的是我个人编写的位图操作类,本位图操作类中的算法组,可以用于所有能够返回具有指针特性图像矩阵的文档操作类库。也就是说通用性很强。算法组还包括指纹识别算法,卷积函数。位图操作类包括的方法有 tmBmp(); tmBmp(const std::string & fname, BYTE clrBit = 8 ,DWORD imW = 256,DWORD imH = 256); virtual ~tmBmp();
canf18xx8.h
- 、 先在microchip网站上找到00738.zip,这个包中有 can18xx8.h,can18xx8.c,将其复制到一个你要编写程度的子目录中,例如C:\testcan下,这个时候这个东东是不能直接用的。 2、 下载一个MPLAB 7.10,直接安装(要求直接下载) 3、 再下载一个PICC18 (HI-TECH的),要正版哦(支持正版,买不起的想其它办法吧) 4、在你的头文件上写上如下的样式: #include "stdio.h"
一个判断远程主机存活程序代码
- 一个判断远程主机存活程序代码(ping) #include #include #include #include #include "winsock.h" #pragma comment(lib,"Ws2_32"); #define SEND_SIZE 32 #define PACKET_SIZE 4096 #define ICMP_ECHO 8 #define ICMP_ECHOREPLY 0 struct icmp {
pl/0
- /*PL/0编译系统C版本头文件pl0.h*/ /* typedef enum { false, true } bool; */ #define norw 13 /*关键字个数*/ #define txmax 100 /*名字表容量*/ #define nmax 14 /*number的最大位数*/ #define al 10
关于object c 的例子
- 关于object c 的例子,详见压缩包。。。 一、Interface 定义 @interface Circle : NSObject { ShapeColor fillColor; ShapeRect bounds; } - (void) setFillColor: (ShapeColor) fillColor; - (void) setBounds: (ShapeRect) bounds; - (void) draw; @end // Circle
Hacker Disassembler Engine
- Please excuse my english... It's so bad :) Hacker Disassembler Engine, or HDE, is small disassembler engine, which intend to code analyse. HDE get length of command, prefixes, ModR/M and SIB bytes, opcode, immediate, displacement, relative address
st7565s12864.rar
- / 函数: void LCD_DataWrite(unsigned int Data) // 描述: 写一个字节的显示数据至LCD中的显示缓冲RAM当中 // 参数: Data 写入的数据 // 返回: 无 // 备注: 无 // 版本: // 2007/01/09 First version //============================================================== void LCD_DataWrite(
delaunay
- void CDelaunayView::OnDelaunay() { // TODO: Add your command handler code here CDelaunayDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); if(!pDoc->PointList->GetCount()) { char str[100]; ostrstream osr(str,100); osr<&