05 2018 档案
摘要:/* R1 */ QDialog { background-image: url(:/images/background.png); } /* R2 */ QLabel { font: 9pt; color: rgb(0, 0, 127); } /* R3 */ QComboBox:editable, QLineEdit, QListView { color:...
阅读全文
摘要:main.cpp teapots.h teapots.cpp
阅读全文
摘要:main.cpp vowelcube.h vowelcube.cpp
阅读全文
摘要:main.cpp tetraheaderon.h tetraheadron.cpp
阅读全文
摘要:main.cpp bronzestyle.h bronzestyle.cpp brozedialog.h brozedialog.cpp
阅读全文
摘要:样式: 文件格式类型: candy.qss main.cpp candydialog.h candydialog.cpp
阅读全文
摘要:1 #include 2 #include 3 #include 4 5 //创建一个树结构 6 void populateTree(QTreeWidget *treeWidget) 7 { 8 QStringList labels; 9 labels setHeaderLabels(labels); 12 treeWidget->header(...
阅读全文
摘要:main.cpp saxhandler.h saxhandler.cpp
阅读全文
摘要:main.cpp DomPaser.h domparser.cpp
阅读全文
摘要:1.使用QXmlStreamReader读取XML,可以读取内存中容纳不了的特大文件,或者读取在XML文档中定制的文档的内容。 xml文件(in1.xml) main.cpp xmlstreamreader.h xmlstreamreader.cpp
阅读全文
摘要:OSI网络分层介绍 网络结构的标准模型是OSI模型,由国际互联网标准化组织定义的网络分层模型。虽然目前没有完全按照这种模型实现的网络协议栈,但是学习这个模型对于我们理解网络协议还是很有帮助的。 1.OSI网络分层模型 7层,同一层是对等层,对等层之间规则是一致的。 什么是协议栈?一个网络上运行的网络
阅读全文
摘要:unix网络编程 --ubuntu下建立编译环境 1.安装编译器,安装build-essential sudo apt-get install build-essential 2.下载本书的头文件 下载unp13e: http://pix.cs.olemiss.edu/csci561/prg561.
阅读全文
摘要:linux的文件结构和windows不同,没有分区,是树形的结构: /etc:存放配置文件 /lib:编译程序需要的函数库 /usr:包含所有其他内容,比如内核在/usr/src中,/usr/bin存放所有安装语言的命令,比如gcc,g++ /var:包含系统定义表,在系统改变时可以只备份该目录。
阅读全文
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 //读写管道进行进程间的通信 9 //父进程写,子进程读 10 void TestPipe() 11 { 12 //fds[0]读管道,fds[1]写管道 13 int fds[2];...
阅读全文
摘要:1.首先安装fcitx-frontend-qt5 这个应该是默认安装的,然后查看fcitx-frontend-qt5 的安装目录 一般都是这个 然后把这个库复制到安装目录下的(如果找不到可以在终端中搜索Qt找到qt的安装目录) 重启qtcreator 至此已经可以输入中文了:
阅读全文
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 //excise to ms 7 #include 8 9 //get time 10 void TestTime() 11 { 12 13 time_t iTime = time(NULL); 14 //...
阅读全文
摘要:1 #include 2 #include 3 #include 4 5 //获取线程的属性 6 void TestPid() 7 { 8 //进程线程编号 9 printf("My Pid: %d\n",getpid()); 10 // 父进程线程编号 11 printf("Parent Pid: %d\...
阅读全文
摘要:1.open write 2.打开设备文件,输出到控制台 3.重定向 4.stdout重定向到1.txt 5.获取程序目录以及修改当前工作目录 完整代码
阅读全文
摘要:1 查询文件属性 <sys/types.h> <sys/stat.h> int stat(const char *filename ,struct stat *buf) 获取文件属性 int fstat(int fd,struct stat *buf) 功能同stat,但是入参是文件描述符 int
阅读全文

浙公网安备 33010602011771号