上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: 1 . 查看mysql版本信息mysqladmin --version2 . 在mysql里运行可显示出当前服务器版本。SELECT VERTION();3 . 输入密码即可连接到数据库mysql -u root -p4 . 检查mysql服务器是否启动,启动就会有... 阅读全文
posted @ 2017-07-22 14:37 云胡同学 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 一列: --> 100 加上 之后表格的每一格,及边框加上1像素的边框,如下图所示。 一行三列: 100 200 300 两行三列: 100 200 300 4... 阅读全文
posted @ 2017-07-13 11:20 云胡同学 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 三次握手的功能是为了确认客户端和服务器都能接受到对方的消息。小云很喜欢小胡,但是小云是个女孩子,她很害羞,所以她请小城当通信员,让小城帮忙跟小胡说一下自己喜欢小胡。于是呢小城告诉了小胡。这是第一次握手,客户端向服务器发一个带 SYN 标志的数据包。服务器知道自己接受到... 阅读全文
posted @ 2017-07-08 10:43 云胡同学 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 新建一个login.ui表示登录界面的ui。设置一个manage类,管理界面的显示,刚开始,登录界面显示,聊天界面关闭。列表内容Manage::Manage()//登录界面显示,聊天界面关闭{ log = new Login( NULL,this); ch... 阅读全文
posted @ 2017-07-05 23:35 云胡同学 阅读(4116) 评论(0) 推荐(0) 编辑
摘要: QTcpServer的基本操作: 1、调用listen监听端口。 2、连接信号newConnection,在槽函数里调用nextPendingConnection获取连接进来的socket。QTcpSocket的基本能操作: 1、调用connectToHost连接服务... 阅读全文
posted @ 2017-07-04 17:30 云胡同学 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 客户端向服务器端发送连接请求,连接成功接收服务器发送的数据。新建工程,Base class选择QWidget,在工程文件tcpServer.pro中添加一行代码QT += core guiQT += network我们在widget.ui中添加3个标签Label和两个... 阅读全文
posted @ 2017-07-03 16:40 云胡同学 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 服务器新建工程,Base class选择QWidget,在工程文件tcpServer.pro中添加一行代码:QT += network。QT += core guiQT += networkui中添加一个label,用于显示状态信息。在widget.h文件中做以下更改... 阅读全文
posted @ 2017-07-03 14:58 云胡同学 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 题目描述Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.You may assume the integer do not... 阅读全文
posted @ 2017-06-25 17:56 云胡同学 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 题目描述Follow up for “Remove Duplicates”: What if duplicates are allowed at most twice?For example, Given sorted array nums = [1,1,1,2,2,... 阅读全文
posted @ 2017-06-23 14:38 云胡同学 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 题目描述Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allo... 阅读全文
posted @ 2017-06-22 18:50 云胡同学 阅读(97) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页