分类:Qt2011-02-18 21:351395人阅读评论(3)收藏举报qtmysql数据库windowspathcmd.使用Qt做MySQL数据库开发,遇到需要备份、还原数据库的问题。MySQL中没有提供将数据库备份成.sql文件的SQL语句,而是提供了一个mysqldump.exe工具来完成这...
分类:
数据库 时间:
2014-07-16 19:03:22
阅读次数:
276
Lists can appear as values in a dictionary. For example, if you were given a dictionary that maps from letters to frequencies, you might want to inver...
分类:
其他好文 时间:
2014-07-16 18:36:23
阅读次数:
221
定义block和定义delegate一样,都是在得到需要的值那个页面的类里定义。 eg:A类、B类,我要将A类中的值传给B类,那么我就到A类中定义block,B类取值就可以了。。。。 For example:第一步: A类中: .h文件: #import "BaseView...
分类:
其他好文 时间:
2014-07-16 18:09:59
阅读次数:
214
Generate ParenthesesGivennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a sol...
分类:
其他好文 时间:
2014-07-16 18:07:04
阅读次数:
146
Restore IP AddressesGiven a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"255255...
分类:
其他好文 时间:
2014-07-16 18:03:41
阅读次数:
157
Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"Corner Cases:Did you con...
分类:
其他好文 时间:
2014-07-16 17:54:16
阅读次数:
156
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,
Given 1->2->3->3->4->4->5, return 1->2->5.
Given 1->1-...
分类:
其他好文 时间:
2014-07-16 17:30:52
阅读次数:
230
If you use a dictionary in a for statement, it traverses the keys of the dictionary. For example, print_hist prints each key and the corresponding val...
分类:
其他好文 时间:
2014-07-15 23:43:56
阅读次数:
527
DNS检测NS对应DNS服务器SOA授权哪个服务器可以作为dns服务器MXmailexchange邮件交换记录AaddressCNAME别名TXTPTR反向解析/etc/hosts先往根域查找,再往.com域查找,客户端发起请求,递归服务器之间是迭代.根域递归迭代dnsmasq服务tcp不安全网址udpcp-rp权限hostns.example.comn..
分类:
编程语言 时间:
2014-07-15 11:40:30
阅读次数:
410
由于工作需要,开始使用Qt,由于在网上找的教程文档时针对qt3的,所以在学习的过程遇到了许多由于版本不一致造成的问题,因此记录下来。参考的文档是:Qt入门教程 详细讲解版本机Qt版本为:Qt5.3.1(windows、Linux(CentOS 6.2))windows下1、错误:C1083: 无法打...
分类:
其他好文 时间:
2014-07-14 19:25:13
阅读次数:
245