彭国伦的fortran程序设计,非常详尽的课后习题答案。
2023-10-23 09:42:29 573KB fortran 彭国伦
1
Windows.环境下32位汇编语言程序设计(第2版)
2023-10-22 19:43:19 2.71MB Windows 32位 汇编语言 程序设计
1
C++程序设计 Complex复数类 直角坐标系 包括复数间的加、减、乘、除,还有两个复数间的夹角
1
SWD6802E对讲机程序
2023-10-18 22:09:37 23KB 程序设计
1
湖南省一到三届的程序设计大赛题,很有参考价值
2023-10-18 18:24:02 563KB 程序设计大赛
1
"网络编程技术实验报告 " "实验名称"实验四 基于数据报套接字的回射程序设计与实验 " "队 别 " "【实验目的】 " "巩固套接字编程 " "熟悉流式套接字编程 " "【实验要求】 " "使用流式套接字编程实现回射程序,具体包括: " "1. 客户端:主动请求建立连接,接收界面输入字符串,发送数据给服务器,接收服 " "务器返回的应答,输出显示。 " "2. 服务器:在指定端口上提供服务,接收客户端的发送的回射请求字符串,将接收 " "到的内容回射给客户端,输出显示。 " "3. 提炼出网络操作的基本功能,构造网络操作类,修改原有程序 " "【实验环境】 " "DEV C++ " "【实验作业】 " "网络操作类设计: " "class CSocketFrame " "{ " "public: " "int start_up(); " "int clean_up(); " "int set_address(char *hname,char *sname,struct sockaddr_in *sap,char " "*protocol); " "int quit(SOCKET s); " "SOCKET tcp_server(ULONG uIP,USHORT uPort); " "SOCKET tcp_server(char *hname,char *sname); " "SOCKET tcp_client(char *hname,char *sname); " "SOCKET tcp_client(ULONG uIP,USHORT uPort); " "}; " "int CSocketFrame::start_up(void) " "{ " "WORD wVersionRequested; " "WSADATA wsaData; " "int iResult; " "wVersionRequested=MAKEWORD(2,2); " "iResult=WSAStartup(wVersionRequested,&wsaData); " "if(iResult!=0) " "{ " "printf("WSAStartup 调用错误,错误号:%d\n",WSAGetLastError()); " "return -1; " "} " "/* " "if(LOBYTE(wsaData.wVersion!=2""HIBYTE(wsaData.wVersion)!=2)) " "{ " "printf("无法找到可用的WSD版本\n"); " "WSACleanup(); " "return -1; " "//告诉用户无法找到可用的WSD " " " " " "} " "else " "{ " "printf("WS2.2初始化成功!\n"); " "} */ " "return 0; " "} " "int CSocketFrame::clean_up(void) " "{ " "int iResult; " "iResult=WSACleanup(); " "if(iResult==SOCKET_ERROR) " "{ " "//WSACleanup()调用失败 " "printf("WSACleanup 调用错误,错误号:%d\n",WSAGetLastError()); " "return -1; " "} " "else " "printf("Winsocket dll释放成功!\n") ; " "return 0; " "} " "int CSocketFrame::set_address(char *hname,char *sname,struct sockaddr_in " "*sap,char *protocol) " "{ " "struct servent *sp; " "struct hostent *hp; " "char *endptr; " "unsigned short port; " "unsigned long ulAddr=INADDR_NONE; " "//将地址结构socketsddr_in初始化为0,并将地址族设为AF_INET " "memset(sap,0,sizeof(*sap)); " "sap->sin_family=AF_INET; " "if(hname!=NULL) " "{ " "//如果hname不为空,转化地址格式 " "ulAddr=inet_addr(hname); " "if(ulAddr==INADDR_NONE""ulAddr==INADDR_ANY) " "{ " "//调用错误,调用gethostbyname获得主机地址 " "hp=gethost
2023-10-18 09:22:29 108KB 文档资料
1
谭浩强的C++,整书PDF完整版,对使用谭浩强的C版新手们有很大的帮助哦.讲解非常详细. 全书分为4大篇,共14章 第一篇 基本知识 第二篇 面向过程的程序设计 第三篇 基于对象的程序设计 第四篇 面向对象的程序设计 ====================== 好东西,不多说了.共55MB,分3个压缩卷.
2023-10-18 08:04:12 14.58MB C++ 谭浩强
1
java期末试卷 复习 课件 供复习参考用
2023-10-18 07:00:49 36.24MB 中山大学 java 张治国 试卷
1
清华大学副教授郑莉主编的<>第三版课后答案.有注释.
2023-10-17 08:01:11 738KB C++ 郑莉 课后 答案
1