最近帮学长写了个Qt Tcpsocket客户端的应用程序,被一个问题困扰了许久.因为以前没有用Qt 写过socket的客户端程序
加上时间比较紧,都没能好好的查看些资料就急忙的写代码,看了一些别人的代码,差不多都是相同的,但是我就出现了收数据
不全的问题..
最后查出原因是我在接受服务器端的数据时使用了read()这个函数,接收的是个结构体,这里顺便说下怎么在Qt 下收发结构体
发:cli...
分类:
其他好文 时间:
2014-06-19 11:13:54
阅读次数:
342
package com.xxx.example.dynamicjob; public class
MyTask { public void performAction() { System.out.println("...
分类:
编程语言 时间:
2014-06-16 09:34:53
阅读次数:
357
需要的东西: 1.VS2013 2.Qt5.3 3.Visual Studio Add-in
1.2.3 for Qt5 其中2和3项可在Qt官网下载:http://qt-project.org/downloads
(第3项在download页面最下方的other downloads中找...
分类:
其他好文 时间:
2014-06-16 07:50:23
阅读次数:
478
Netapp exportfs NFS Config CLI GuideA quick and
simple Netapp NFS configuration guide with commands and options to help explain
and remove the mysteri...
分类:
移动开发 时间:
2014-06-16 06:32:55
阅读次数:
281
初学Android,不得不承认Android在UI效果实现上的强大,完全不在html5之下,不过这还得归功于Android丰富的SDK,以下尝试借助ViewFlipper类来实现通过手势滑动图片的效果,先上Java代码:
1 package com.example.sportdemo; 2 3...
分类:
移动开发 时间:
2014-06-16 00:20:48
阅读次数:
284
Given an unsorted integer array, find the first
missing positive integer.For example, Given [1,2,0] return 3, and [3,4,-1,1]
return 2.Your algorithm s...
分类:
其他好文 时间:
2014-06-13 20:25:38
阅读次数:
241
Swap Nodes in Pairs:Given a linked list, swap every
two adjacent nodes and return its head.For example,Given1->2->3->4, you
should return the list as2...
分类:
其他好文 时间:
2014-06-13 17:04:27
阅读次数:
180
Rotate ListGiven a list, rotate the list to the
right bykplaces, wherekis non-negative.For
example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3-...
分类:
其他好文 时间:
2014-06-13 16:39:53
阅读次数:
307
Given a collection of intervals, merge all
overlapping intervals.For
example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[15,18].public class
S...
分类:
其他好文 时间:
2014-06-13 15:12:35
阅读次数:
180
Given a binary tree, flatten it to a linked
list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:
其他好文 时间:
2014-06-13 15:11:35
阅读次数:
273