摘要:
1 . 查看mysql版本信息mysqladmin --version2 . 在mysql里运行可显示出当前服务器版本。SELECT VERTION();3 . 输入密码即可连接到数据库mysql -u root -p4 . 检查mysql服务器是否启动,启动就会有... 阅读全文
摘要:
一列: --> 100 加上 之后表格的每一格,及边框加上1像素的边框,如下图所示。 一行三列: 100 200 300 两行三列: 100 200 300 4... 阅读全文
摘要:
三次握手的功能是为了确认客户端和服务器都能接受到对方的消息。小云很喜欢小胡,但是小云是个女孩子,她很害羞,所以她请小城当通信员,让小城帮忙跟小胡说一下自己喜欢小胡。于是呢小城告诉了小胡。这是第一次握手,客户端向服务器发一个带 SYN 标志的数据包。服务器知道自己接受到... 阅读全文
摘要:
新建一个login.ui表示登录界面的ui。设置一个manage类,管理界面的显示,刚开始,登录界面显示,聊天界面关闭。列表内容Manage::Manage()//登录界面显示,聊天界面关闭{ log = new Login( NULL,this); ch... 阅读全文
摘要:
QTcpServer的基本操作: 1、调用listen监听端口。 2、连接信号newConnection,在槽函数里调用nextPendingConnection获取连接进来的socket。QTcpSocket的基本能操作: 1、调用connectToHost连接服务... 阅读全文
摘要:
客户端向服务器端发送连接请求,连接成功接收服务器发送的数据。新建工程,Base class选择QWidget,在工程文件tcpServer.pro中添加一行代码QT += core guiQT += network我们在widget.ui中添加3个标签Label和两个... 阅读全文
摘要:
服务器新建工程,Base class选择QWidget,在工程文件tcpServer.pro中添加一行代码:QT += network。QT += core guiQT += networkui中添加一个label,用于显示状态信息。在widget.h文件中做以下更改... 阅读全文
摘要:
题目描述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... 阅读全文
摘要:
题目描述Follow up for “Remove Duplicates”: What if duplicates are allowed at most twice?For example, Given sorted array nums = [1,1,1,2,2,... 阅读全文
摘要:
题目描述Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allo... 阅读全文