一 . QT4和QT5的区别(信号和槽):1. QT4: connect(button,SIGNAL(pressed()),this,SLOT(close())); /** * 优点 :写法简单 * 缺点: SIGNAL(), SLOT()是两个宏,将函数转换为字符串 * 编译时不做错误检查,影响程 ...
分类:
其他好文 时间:
2018-07-27 21:07:18
阅读次数:
220
先是randy回来讲了一节io的内容,randy讲的显然比david好太多了,然而还是感觉听得云里雾里。实际上感觉第十章也没什么内容,无非就是讲了些底层的io函数,并且告诉你这些东西基本没什么叼用,一般还是要用unix给的标准io函数...或者也可以用自己implement的io函数,书上写了一套叫 ...
分类:
系统相关 时间:
2018-07-25 20:13:25
阅读次数:
184
Two arrays are called similar if one can be obtained from another by swapping at most one pair of elements in one of the arrays. Given two arrays a an ...
分类:
其他好文 时间:
2018-07-24 23:51:48
阅读次数:
383
You are given an array of integers. On each move you are allowed to increase exactly one of its element by one. Find the minimal number of moves requi ...
分类:
其他好文 时间:
2018-07-24 23:47:57
阅读次数:
327
Given a string, find out if its characters can be rearranged to form a palindrome. Example For inputString = "aabb", the output should bepalindromeRea ...
分类:
其他好文 时间:
2018-07-24 23:47:05
阅读次数:
246
Some people are standing in a row in a park. There are trees between them which cannot be moved. Your task is to rearrange the people by their heights ...
分类:
其他好文 时间:
2018-07-22 20:45:31
阅读次数:
211
CLOSE_WAIT, signal, sigaction,errno = 104, write, RST ...
分类:
其他好文 时间:
2018-07-22 19:26:13
阅读次数:
221
Ticket numbers usually consist of an even number of digits. A ticket number is considered lucky if the sum of the first half of the digits is equal to ...
分类:
其他好文 时间:
2018-07-22 18:47:21
阅读次数:
241
Given two strings, find the number of common characters between them. Example For s1 = "aabcc" and s2 = "adcaa", the output should becommonCharacterCo ...
分类:
其他好文 时间:
2018-07-22 18:46:53
阅读次数:
171
Given an array of strings, return another array containing all of its longest strings. Example For inputArray = ["aba", "aa", "ad", "vcd", "aba"], the ...
分类:
其他好文 时间:
2018-07-22 00:23:41
阅读次数:
155