搜索资源列表
GridView
- a+b的实现添加ArrayTools类,要求包括下面的静态方法。 static void sort(Person[] a) 该方法可以对Person类型的数组进行升序排序,排序依据a数组中元素的compareTo方法。-Add ArrayTools class requirements include the following static methods. static void sort (Person [] a) -the realization of a+b to add ArrayT
banjiv1.0
- 只是使用了一些许的面向对象程序设计的设计方法,在软件的设计与实现的时候更多的是使用面向过程的设计方法,在软件中,我们提供了两个封装的方法函数:public void read() 和public void write().在这两个方法中,都使用了异常处理机制,当用户进行非法操作时,提供相应的异常(主要是显示出错信息)。在两个基本点封装的方法中,并没有要求用户提供具体的参数,而是直接地去调用它们,具体的实现方式对用户来说是不可见的,在write方法中,其功能是获取用户所写入的字符串,并将它写入文件
FTP_C
- void PrintReturn( int nRet) { switch( nRet ) { case TRAN_SUCCESS: cout<<TRAN_SUCCESS<<endl break //传输成功 case SOCK_WSA_ERR: cout<<"SOCK_WSA_ERR"<<endl break //启动winsock失败 -void PrintReturn (int nRet) {sw
IEC-104Master
- 支持IEC60870-5-104: 2000 IEC104规约软件包 实现104规约主站侧链路层的功能-IEC_Master_104.lib: void Init_SockServerport(WORD port=2404) void Init_Linkpara(int t0=30,int t1=15,int t2=10,int t3=20,int k=12,int w=8) virtual void On_init_Link_process() virtual v
IEC-104Slave
- 支持IEC60870-5-104:2000规约软件包: 实现104规约子站侧全部功能.链路层和ASDU应用层-void Init_SockServerport(WORD port=2404) void Init_Linkpara(int t0=30,int t1=15,int t2=10,int t3=20,int k=12,int w=8) virtual void On_init_Link_process() virtual void On_init_Sock_proc
wangluoliuliang
- 获取数据流量获取网络 流量-include < stdlib.h> #include < stdio.h> #include < pcap.h> void usage() void dispatcher_handler(u_char*, const struct pcap_pkthdr*, const u_char*) void main(int argc, char**argv){pcap_t*fp char errbuf[PCAP_ERRBUF_SIZE] struc
moxingjiaohu
- 实现三维模型的交互,如添加新的模型,改变模型的颜色等等,部分代码自己写的,可能功能不算特别完善,共同改进-private void moxingjiaohu ToolStripMenuItem_Click(object sender, EventArgs e)private void axSceneControl1_OnMouseDown(object sender, ISceneControlEvents_OnMouseDownEvent e)public void AddMultipatch
void-glutDisplayFunc
- opengl program:this is the structure of a prolog program that is a main game engine
TestNode
- static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Trace.Listeners.Add(new TextWriterTraceListener("messages.log")) Trace.AutoFlu
work1.tar
- 实现一个简易的printf函数,系统调用write的调用格式为size_t write (int fd,const void * buf,size_t count),将读取buf中字长为count的数据进入到文件描述符为fd的文件中-Achieve a simple printf function, call the system call write format size_t write (int fd, const void* buf, size_t count), will read t
fifo_client
- #define FIFO_NAME1 fifo_test1 //client 利用此管道读,server 用此管道写 #define FIFO_NAME2 fifo_test2 //client 利用次官道写,server 用此管道读 //倒转函数 void reserbuf(char string[512]) { char temp[512] for(int i = 0 i<strlen(string)+1 i++) { // printf(
gbook13
- 例程说明: 留言本的特点: * 区分是否使用邮件和主页图片,保证留下的都是完整、有效的信息 * 将guest.htm改为default.htm * 新增留言内容长度等合法性检查,避免没内容的留言 * 在程序中增加了更多的注释,方便阅读和使用 * 解决了留言页面宽度不一致的问题 * 改用外部样式表,使得再次改进时更简便 * 回复留言时加上及时颜色效果显示 * 留言中允许包含超级连接,其他Html语法一概无效 * 改进了留言图片和颜色搭配方案,重整后的页面更整洁、清新 * 在写留言页面上预留了广告位
uart_print
- void uart_init():uart初始化配置,配置相应IO口状态、奇偶校验选择以及波特率等参数。 unsigned char uart_max_data_get(unsigned char *buf) :通过协议计算等获取串口通讯的最大数据长度,用于判断这一帧数据接收完全 unsigned char uart_recive(unsigned char *buf):串口接收函数,接收到的数据存储在buf中。
du
- 定义一个包含两个纯虚函数的抽象类shape: class shape { public: virtual float Area()=0; virtual void SetData(float,float=0)=0; }; 成员函数SetData用于设置几何图形的属性值。成员函数Area()用于求出几何图形的面积。由shape派生出四种几何图形,分别是:三角形、矩形、正方
lab32-Cap
- void InitEPwm1Example(void); void main(void) { // Step 1. Initialize System Control: // PLL, WatchDog, enable Peripheral Clocks // This example function is found in the DSP2833x_SysCtrl.c file. InitSysCtrl(); // Step 2. Initalize GPIO: /