摘要: 开放系统互连参考模型 (Open System Interconnect 简称OSI) OSI七层模型 1.应用层2.表示层3.会话层4.传输层5.网络层6.数据链路层7.物理层 TCP/IP模型1.应用层 上面3层:应用程序、协议:HTTP、FTP2.传输层 TCP UDP3.网络层 IP(不可靠 阅读全文
posted @ 2019-03-26 21:57 xslwm 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 在c语言中,把直接使用的常数叫做幻数。 #define SIZE 10 enum{ SIZE = 10 }; const int SIZE = 24; 宏定义是字符替换,没有数据类型的区别,同时这种替换没有类型安全检查,可能产生边际效应等错误;const常量是常量的声明,有类型区别,需要在编译阶段进 阅读全文
posted @ 2019-03-17 21:15 xslwm 阅读(260) 评论(0) 推荐(0) 编辑
摘要: MFC调试宏 TRACE() 其形式与函数printf()的参数一样,功能是在调试运行时把表达式的值输出到Output调试窗口。 Debug版有效 ASSERT()——断言宏, 表达式为真,则程序继续执行;否则暂停程序的运行,并弹出一个对话框,告诉用户程序暂停运行的行及所在文件的信息。用户可选择终止 阅读全文
posted @ 2019-03-17 16:20 xslwm 阅读(304) 评论(0) 推荐(0) 编辑
摘要: net start MySQL57net stop MySQL57 mysql -h localhost -u root -p 查看引擎show engines;show variables like '%storage_engine'; show databases; 创建数据库create da 阅读全文
posted @ 2019-03-09 22:47 xslwm 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 只简单写了几个函数 运行结果: 阅读全文
posted @ 2019-03-03 22:27 xslwm 阅读(1337) 评论(0) 推荐(0) 编辑
摘要: 运行结果: 阅读全文
posted @ 2019-03-03 00:34 xslwm 阅读(928) 评论(0) 推荐(0) 编辑
摘要: const作用 (1)可以定义const常量,具有不可变性。 (2)便于进行类型检查。(而宏不会进行类型检查)。 (3)可以保护被修饰的东西,防止意外的修改。 (4) 可以节省空间。 static作用 1.隐藏:一个文件中的全局变量在另外一个文件中使用extern声明就能使用,声明了static就不 阅读全文
posted @ 2019-03-02 16:18 xslwm 阅读(267) 评论(0) 推荐(0) 编辑
摘要: //二位数组参数传递 //1. void display1(int arr[][4], const int rows) { for (int i = 0; i < rows; i++) { for (int j = 0; j < 4; j++) { cout << arr[i][j] << ' '; } cout << endl; } cout << endl; ... 阅读全文
posted @ 2019-02-03 10:59 xslwm 阅读(184) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections; using System.Collections.Generic; using static System.Console; //集合 namespace lwm { class Program { static voi 阅读全文
posted @ 2018-10-26 16:14 xslwm 阅读(146) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using static System.Console; //泛型 主要优点是性能 与c++模板相似 但c++在使用时需要其源代码 //而.NET泛型可在一种语言中定义,在任何其他.NET语言中使用 namespace lwm { class Program ... 阅读全文
posted @ 2018-10-26 15:20 xslwm 阅读(131) 评论(0) 推荐(0) 编辑