摘要: if (clientSocket.Connected) { } 阅读全文
posted @ 2020-10-31 03:25 WP-WangPin 阅读(242) 评论(0) 推荐(0) 编辑
摘要: private void richTextBox2_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r') { // button2.Focus(); button1_Click(sender, e); } if ( 阅读全文
posted @ 2020-10-31 03:18 WP-WangPin 阅读(1925) 评论(0) 推荐(1) 编辑
摘要: 阻塞模式 Windows套接字在阻塞和非阻塞两种模式下执行I/O操作。在阻塞模式下,在I/O操作完成前,执行的操作函数一直等候而不会立即返回,该函数所在的线程会阻塞在这里。相反,在非阻塞模式下,套接字函数会立即返回,而不管I/O是否完成,该函数所在的线程会继续运行。 在阻塞模式的套接字上,调用任何一 阅读全文
posted @ 2020-10-31 02:53 WP-WangPin 阅读(1960) 评论(0) 推荐(0) 编辑
摘要: 在keypress事件中 private void richTextBox2_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r') { textbox.Focus(); } if (e.KeyChar == Sys 阅读全文
posted @ 2020-10-31 02:33 WP-WangPin 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Environment.Exit(0)//可以退出单独开启的线程 阅读全文
posted @ 2020-10-30 21:50 WP-WangPin 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Application.ExitThread();//释放所有线程 阅读全文
posted @ 2020-10-30 21:01 WP-WangPin 阅读(853) 评论(0) 推荐(0) 编辑
摘要: listenerThread.Abort(); 阅读全文
posted @ 2020-10-30 20:55 WP-WangPin 阅读(168) 评论(0) 推荐(0) 编辑
摘要: DialogResult result = MessageBox.Show("你将删除账号中所有的课程信息,删除后将不可恢复,是否继续删除?", "确认删除", MessageBoxButtons.OKCancel, MessageBoxIcon.Question); if (result == D 阅读全文
posted @ 2020-10-30 18:04 WP-WangPin 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 返回用来收发数据的套接字 private Socket getSocket(string ip, int p) { Socket socketclient = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType 阅读全文
posted @ 2020-10-30 17:59 WP-WangPin 阅读(704) 评论(0) 推荐(0) 编辑
摘要: public string GetLocalIp() { ///获取本地的IP地址 string AddressIP = string.Empty; foreach (IPAddress _IPAddress in Dns.GetHostEntry(Dns.GetHostName()).Addres 阅读全文
posted @ 2020-10-30 17:51 WP-WangPin 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Convert.ToInt32("123"); 阅读全文
posted @ 2020-10-30 17:49 WP-WangPin 阅读(1305) 评论(0) 推荐(0) 编辑
摘要: class Deque { constructor() { this.count = 0; this.lowestCount = 0; this.items = {}; } addFront(element) { if (this.isEmpty()) { this.addBack(element) 阅读全文
posted @ 2020-10-29 13:24 WP-WangPin 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 客户端 import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; public class Client { public static v 阅读全文
posted @ 2020-10-28 20:47 WP-WangPin 阅读(73) 评论(0) 推荐(0) 编辑
摘要: class Queue { constructor() { this.count = 0; this.lowestCount = 0; this.items = {}; } enqueue(element) { this.items[this.count] = element; this.count 阅读全文
posted @ 2020-10-27 22:19 WP-WangPin 阅读(115) 评论(0) 推荐(0) 编辑
摘要: class Stack { constructor() { this.count = 0; this.items = {}; } push(element) { this.items[this.count] = element; this.count++; } pop() { if (this.is 阅读全文
posted @ 2020-10-27 16:43 WP-WangPin 阅读(92) 评论(0) 推荐(0) 编辑
摘要: class StackArray { constructor() { this.items = []; } push(element) { this.items.push(element); } pop() { return this.items.pop(); } peek() { return t 阅读全文
posted @ 2020-10-26 23:14 WP-WangPin 阅读(100) 评论(0) 推荐(0) 编辑
摘要: <body> <input type="text"> <button>发送</button> </body> <script> var sent = document.querySelector('button'); var search = document.querySelector('inpu 阅读全文
posted @ 2020-10-11 11:08 WP-WangPin 阅读(138) 评论(0) 推荐(0) 编辑
摘要: <body> <div></div> <script> var div = document.querySelector('div'); retNowTime(); setInterval(retNowTime, 1000); function retNowTime() { var date = n 阅读全文
posted @ 2020-10-11 10:23 WP-WangPin 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 段落与段落之间有空隙,行与行之间没空隙 、 阅读全文
posted @ 2020-07-11 03:45 WP-WangPin 阅读(72) 评论(0) 推荐(0) 编辑
摘要: <link rel="icon" type="image/ico" href="images/favicon.ico" /> 阅读全文
posted @ 2020-05-16 01:02 WP-WangPin 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 搜引擎优化 阅读全文
posted @ 2020-05-16 01:00 WP-WangPin 阅读(90) 评论(0) 推荐(0) 编辑
摘要: /* 把我们所有标签的内外边距清零 */ * { margin: 0; padding: 0; box-sizing: border-box; } /* em 和 i 斜体的文字不倾斜 */ em, i { font-style: normal } /* 去掉li 的小圆点 */ li { list 阅读全文
posted @ 2020-05-15 22:43 WP-WangPin 阅读(110) 评论(0) 推荐(0) 编辑
摘要: * { margin: 0; padding: 0; } .w { width: 1200px; margin: auto; } body { background-color: #f3f5f7; } li { list-style: none; } a { text-decoration: non 阅读全文
posted @ 2020-05-11 16:52 WP-WangPin 阅读(100) 评论(0) 推荐(0) 编辑
摘要: logo优化、头部制作 阅读全文
posted @ 2020-05-09 20:45 WP-WangPin 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-09 20:29 WP-WangPin 阅读(106) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> 告诉浏览器页面采用的是html版本显示页面 <html lang="zh-CN"> 告诉浏览器这是中文网页 <meta charset="UTF-8"> 采用UFT-8保存文字 <p> </p> 是段落标签 ,段落与段落之间存在一行的空隙 <br> 是强制换行,行与行 阅读全文
posted @ 2020-04-27 00:39 WP-WangPin 阅读(107) 评论(0) 推荐(0) 编辑
摘要: JavaScript变量可以用保存两种类型的值:基本类型值和引用类型值。基本类型的值源自以下基本类型数据:Undefined、Null、Boolean、Number和String。 从一个变量向另一个变量复制引用型类型的值,复制的其实是指针,因此两个变量最终指向同一个变量。 确认一个值是哪种引用类型 阅读全文
posted @ 2020-04-24 02:28 WP-WangPin 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 这章讲了JavaScript的语法、数据类型、流控制语句和函数。理解还是挺好理解的,但有很多和C、C++、Java不同的地方需要记忆。比如, JavaScript标识符可以由Unicode字符字符组成。 JavaScript每条语句后面的分号也不是必需的,语句后面没有分号时,解析器会自己确定语句的结 阅读全文
posted @ 2020-04-23 18:13 WP-WangPin 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 这章讲的是JavaScript在HTML中的使用,也就是<script>元素的属性。书中详细讲了async、defer、src和type四个<script>的属性。 下面是对第二章做的笔记 <script>元素 type:可选。表示编写代码的脚本语言的类型;属性的值一般是text/javascrip 阅读全文
posted @ 2020-04-22 21:22 WP-WangPin 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 代码行向左或向右缩进: Ctrl+[ 、 Ctrl+] 复制或剪切当前行/当前选中内容: Ctrl+C 、 Ctrl+V 代码格式化: Shift+Alt+F 向上或向下移动一行: Alt+Up 或 Alt+Down 向上或向下复制一行: Shift+Alt+Up 或 Shift+Alt+Down 阅读全文
posted @ 2020-04-22 18:38 WP-WangPin 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 第一章主要讲了JavaScript的诞生和发展。刚刚接触JavaScript的我,似乎对这些内容并不感兴趣,快速看了一遍就开始去看第二章了。 看完第一章,收获也就是了解到JavaScript由ECMAScript、文档对象模型(DOM)和浏览器对象模型(BOM)组成。 书本上写在最后的小结: Jav 阅读全文
posted @ 2020-04-22 16:24 WP-WangPin 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 连接数据库 string oleCon = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source= " + Application.StartupPath + @"\works.accdb;"; //创建数据库连接 OleDbConnection conn; 阅读全文
posted @ 2020-04-21 17:37 WP-WangPin 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 队列尾进头出 阅读全文
posted @ 2020-04-21 02:19 WP-WangPin 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 链栈就是只能在一端进行插入和删操作、只能访问首元素结点的链表 阅读全文
posted @ 2020-04-21 01:50 WP-WangPin 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 顺序栈基本功能 阅读全文
posted @ 2020-04-21 01:26 WP-WangPin 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 链表的基本功能 阅读全文
posted @ 2020-04-20 22:29 WP-WangPin 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 顺序表的基本功能 阅读全文
posted @ 2020-04-20 20:27 WP-WangPin 阅读(417) 评论(0) 推荐(0) 编辑