摘要:转载来自:https://www.cnblogs.com/coolbear/archive/2013/05/24/3096683.htmlusing namespace std; 1、字符串中不含有汉字 |--string-->wstring string s("abc"); wstring ws(
阅读全文
摘要:本例子展示的是主分支“强制”覆盖子分支;也就是说你决定不再需要你的子分支了; 1 本地pull 主分支master的最新代码;git log 看最新的日志; 2 git push origin master:temp 相当于拉一个字分支叫temp;如果temp本来就存在,那主分支的更新原则上会覆盖子
阅读全文
摘要:1该博客采集后置摄像头,然后直接转UIimage显示;通过OpenGLES显示 两种 博客参考:简书loyinlin 和 IOS 官方demo:https://developer.apple.com/library/archive/samplecode/GLCameraRipple/Introduc
阅读全文
摘要:sonic调用: #include <stdio.h> #include <stdlib.h> #include <string.h> #include "sonic.h" #include <time.h> #include<Foundation/Foundation.h> int main()
阅读全文
摘要:1 QT的UI上,控件拉一个QOpenGLWidget ,点击右键,升级为类,输入类名 2 #include <QObject> #include <QDebug> #include <QWidget> #include <QPainter> #include <QOpenGLWidget> #in
阅读全文
摘要:1 vscode 下载Remote SSH;安装扩展插件remote ssh 2选择SSH Targets,设置config配置文件位置 /usr/**/.ssh/config 3 config中填写填写要访问的远程服务器的IP,机器名称,用户名 Host <远程主机名称> HostName <远程
阅读全文
摘要:我们在开发iOS程序的时候常常会用到调试跟踪,如何正确的使用调试器来debug十分重要。xcode里有内置的Debugger,老版使用的是GDB,xcode自4.3之后默认使用的就是LLDB了。--https://blog.csdn.net/qq_30513483/article/details/8
阅读全文
摘要:1下载(MAC OS) http://sox.sourceforge.net/ 注意:把源代码放在英文目录下,否则可能会出现编译不过的问题; 2编译 autoreconf -i 源码中的configure.ac 会生成configure ./configure 生成makefile automake
阅读全文
摘要:1 读文件: int readsize= fread(pbuffer, 1,320, fp_in); 读320字节 int readsize= fread(pbuffer,320,1, fp_in);返回的是1 2 如果读文件开的缓冲正好和要读取的数据量一样大: char *pbuffer = ne
阅读全文