12 2022 档案
摘要:摘自:https://cloud.tencent.com/developer/article/20260431) C++11中引入了六种内存约束符用以解决多线程下的内存一致性问题(在头文件<atomic>中),其定义如下:typedef enum memory_order { memory_orde
阅读全文
摘要:1) OpenGL APIhttps://docs.gl/gl4/glUniform1-1) GLSL数据类型https://zhuanlan.zhihu.com/p/5579071951-2)纹理:https://blog.csdn.net/ht_vIC/article/details/12369
阅读全文
摘要:std::string readText(std::string &filename) { std::string shaderCodeStr(""); std::ifstream shaderFile; shaderFile.exceptions(std::ifstream::failbit |
阅读全文
摘要:std::map<std::string, uint32_t> dictionary std::set<const std::string *> keySet; // std::back_inserter(keyVector) std::transform(dictionary.begin(), d
阅读全文
摘要:1) IO#include <iostream> // std::cin, std::cout, std::ios#include <sstream>2) 字符串using namespace std::string_literals; // using namespace std::string_
阅读全文
摘要:GIS开源组件编译系列 (01)CentOS7环境中编译GDAL3.5 其编译的组件有sqlite、libiconv、protobuf、libdeflate、LZMA2、zstd、pcre2、tiff、openssl、curl、Proj、Geos、swig、Hadoop、hdf5、netcdf、po
阅读全文
摘要:1. 先在一台能上外网的CentOS7上下载安装包 [root@server101 root]# yum -y install yum-utils [root@server101 root]# mkdir dep [root@server101 root]# cd dep [root@server1
阅读全文
摘要:方法一:#include <stdio.h> #include <stdlib.h> #include <fstream> #include <string> // size_t readBinaryFile(const char *filename, unsigned char *&data) {
阅读全文
摘要:参考:https://blog.csdn.net/wangqinghao/article/details/7245851https://www.codenong.com/7241871/1. std::stringstream转换为std::vector<char>// std::stringstr
阅读全文