05 2019 档案

摘要:这些步骤可实现音乐播放,但是列表不能显示 阅读全文
posted @ 2019-05-31 13:55 MoonXu 阅读(242) 评论(0) 推荐(0) 编辑
摘要:General-Purpose Instructions The general-purpose instructions perform basic data movement, memory addressing,arithmetic and logical operations, progra 阅读全文
posted @ 2019-05-29 11:24 MoonXu 阅读(93) 评论(0) 推荐(0) 编辑
摘要:.long expression1, expression2, ..., expressionNThe .long directive generates a long integer (32-bit, two's complement value) for eachexpression into 阅读全文
posted @ 2019-05-28 18:26 MoonXu 阅读(104) 评论(0) 推荐(0) 编辑
摘要:Assembler Directives .align integer, padThe .align directive causes the next data generated to be aligned modulo integer bytes.Integer must be a posit 阅读全文
posted @ 2019-05-28 17:10 MoonXu 阅读(318) 评论(0) 推荐(0) 编辑
摘要:int main() 4 { 5 char buf[20] = {'\101','\102','\103',0}; 6 printf("%s",buf); 7 return 0; 8 } 输入结果ABC; 单引号内‘\’开始的8进制ASCII码的转义 阅读全文
posted @ 2019-05-28 10:48 MoonXu 阅读(1281) 评论(0) 推荐(0) 编辑
摘要:1: / define numeric label "1"one: / define symbolic label "one"/ ... assembler code ...jmp 1f / jump to first numeric label "1" defined/ after this in 阅读全文
posted @ 2019-05-28 10:46 MoonXu 阅读(298) 评论(0) 推荐(0) 编辑
摘要:网盘链接baidu.com添加baiduwp.com即可快速下载。不行的话换个浏览器 阅读全文
posted @ 2019-05-27 13:17 MoonXu 阅读(170) 评论(0) 推荐(0) 编辑
摘要:closesocket(一般不会立即关闭而经历TIME_WAIT的过程)后想继续重用该socket:BOOL bReuseaddr=TRUE;setsockopt(s,SOL_SOCKET ,SO_REUSEADDR,(const char*)&bReuseaddr,sizeof(BOOL)); S 阅读全文
posted @ 2019-05-27 09:56 MoonXu 阅读(229) 评论(0) 推荐(0) 编辑
摘要:创建文件ClearWindow添加内容 class ClearWindow: menudefs = [ ('options', [None, ('Clear Shell Window', '<<clear-window>>'), ]),] def __init__(self, editwin): s 阅读全文
posted @ 2019-05-24 17:20 MoonXu 阅读(498) 评论(0) 推荐(0) 编辑
摘要:accept(2) pass accept4(2)// 不会 #define _GNU_SOURCE /* See feature_test_macros(7) */ #include <sys/socket.h> int accept4(int sockfd, struct sockaddr *a 阅读全文
posted @ 2019-05-24 09:22 MoonXu 阅读(170) 评论(0) 推荐(0) 编辑
摘要:cmake 编译opengl,参考https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows cmake configure完成没有错误后,点击generate生成makefile文件 mingw32-make -j 8编译到27%的时候,出错D 阅读全文
posted @ 2019-05-23 17:37 MoonXu 阅读(1402) 评论(0) 推荐(0) 编辑
摘要:MinGW:Minimalist GNUfor Windows MSVC:Microsoft Visual C++ 阅读全文
posted @ 2019-05-23 13:45 MoonXu 阅读(135) 评论(0) 推荐(0) 编辑
摘要:第1步附加包含目录:H:\software\programming\opencv\opencv\build\include 第2步附加库目录:H:\software\programming\opencv\opencv\build\x64\vc15\lib 第3步附加依赖项:opencv_world4 阅读全文
posted @ 2019-05-23 13:42 MoonXu 阅读(2216) 评论(0) 推荐(0) 编辑
摘要:rewind(3) 将文件内部的位置指针重新指向一个流(数据流/文件)的开头 不是文件指针而是文件内部的位置指针 rewind函数作用等同于 (void)fseek(stream, 0L, SEEK_SET); 阅读全文
posted @ 2019-05-22 19:38 MoonXu 阅读(248) 评论(0) 推荐(0) 编辑
摘要:sockettools识别GB2312,接收qt server 数据时 QByteArray ba=QString().toLocal8Bit(); char *str=ba.data(); 不能一步写成 char *str=QString().toLocal8Bit().data(); 必须分开写 阅读全文
posted @ 2019-05-22 18:23 MoonXu 阅读(166) 评论(0) 推荐(0) 编辑
摘要:QString str("hello"); QString str("hello"); QByteArray bytes = str.toUtf8(); // QString转QByteArray方法1 QByteArray bytes = str.toUtf8(); // QString转QByt 阅读全文
posted @ 2019-05-21 18:17 MoonXu 阅读(2880) 评论(0) 推荐(0) 编辑
摘要:1、向QTextEdit中当前光标位置添加一行字符串message ui.messageTextEdit->textCursor().insertText(message+"\n"); 2、向QTextEdit中末尾追加一行字符串message QString content = ui.conten 阅读全文
posted @ 2019-05-21 18:03 MoonXu 阅读(621) 评论(0) 推荐(0) 编辑
摘要:1. void udp_server::on_lineEdit_textEdited() { ui->pushButton->setEnabled(ui->lineEdit->hasAcceptableInput()); }2. 撤销ctrl+z3.信号槽函数定义 signals: void rea 阅读全文
posted @ 2019-05-21 15:06 MoonXu 阅读(220) 评论(0) 推荐(0) 编辑
摘要:在命令模式下运行命令 :%s/^M//g 回车注意:里面的^M 必须是同时按 Ctrl+V+M ,表示回车。不是直接输入 ^M,也不是粘帖复制。命令完成后,用:x 保存退出后,再次用vi打开就全部被替换掉了。 阅读全文
posted @ 2019-05-21 09:19 MoonXu 阅读(812) 评论(0) 推荐(0) 编辑
摘要:•1st parameter: EBX • 2nd parameter: ECX • 3rd parameter: EDX • 4th parameter: ESI • 5th parameter: EDI 阅读全文
posted @ 2019-05-20 17:39 MoonXu 阅读(221) 评论(0) 推荐(0) 编辑
摘要:.datax: .long 1 .long 5 .long 8 .long 13sum: .long 0 .text.global _start_start: movl $4, %eax movl $0, %ebx movl $x,%ecxtop: addl (%ecx), %ebx addl $4 阅读全文
posted @ 2019-05-20 17:19 MoonXu 阅读(941) 评论(0) 推荐(0) 编辑
摘要:int main(){ char buf[20] = {104,101,108,108,111,0}; printf("buf:%s\n",buf); return 0;} 打印结果buf:hello 阅读全文
posted @ 2019-05-18 15:51 MoonXu 阅读(502) 评论(0) 推荐(0) 编辑
摘要:time(2) #include <time.h> time_t time(time_t *timep);//获取当前时间距离1970-01-01 00:00:00 经历的秒数 p = struct tm *localtime(const time_t *timep);//根据上边timep的值计算 阅读全文
posted @ 2019-05-17 15:36 MoonXu 阅读(2692) 评论(0) 推荐(0) 编辑
摘要:MPEG(Moving Picture Experts Group,动态图像专家组) 阅读全文
posted @ 2019-05-15 17:18 MoonXu 阅读(302) 评论(0) 推荐(0) 编辑
摘要:bvi可以以16进制打开可执行文件 阅读全文
posted @ 2019-05-13 16:31 MoonXu 阅读(91) 评论(0) 推荐(0) 编辑
摘要:do{}while(0);里面有continue,退出的只是do{}while(0); 阅读全文
posted @ 2019-05-10 22:03 MoonXu 阅读(488) 评论(0) 推荐(0) 编辑
摘要:明明已经添加到/etc/environment 安装sudo apt-get install lib32z1 lib32ncurses5 阅读全文
posted @ 2019-05-05 23:50 MoonXu 阅读(194) 评论(0) 推荐(0) 编辑
摘要:locate arm-none-linux-gnueabi-gcc//有效 find / -name "arm-none-linux-gnueabi-gcc" 阅读全文
posted @ 2019-05-05 21:31 MoonXu 阅读(193) 评论(0) 推荐(0) 编辑
摘要:g++ main.c math.cpp math.h中加入extern "C" 阅读全文
posted @ 2019-05-05 17:10 MoonXu 阅读(142) 评论(0) 推荐(0) 编辑
摘要:math.c使用c语言写的main.cpp是c++写的。 gcc -c math.c生成math.o ar -r librmath.a *.o//把math.o打包成静态库rmath.a g++ main.cpp -L./ -lrmath -L静态库路径 -l静态库名字 在math.h中加入exte 阅读全文
posted @ 2019-05-05 16:50 MoonXu 阅读(8382) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示