会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
钟齐峰的博客
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
12
下一页
2021年10月9日
makefile 编译多个目标
摘要: 1、静态库libtools.a源码 libtools.h #ifndef tools_h_ #define tools_h_ int sub(int x,int y); int mul(int x,int y); #endif libtools.cpp #include"libtools.h" in
阅读全文
posted @ 2021-10-09 15:37 钟齐峰
阅读(222)
评论(0)
推荐(0)
2021年9月10日
WebAssembly编译
摘要: 环境:centos 7.9 1、准备环境 sudo yum install docker sudo systemctl start docker.service sudo docker pull trzeci/emscripten:latest 2、编写C++源文件 //main.cpp #incl
阅读全文
posted @ 2021-09-10 13:42 钟齐峰
阅读(408)
评论(0)
推荐(0)
2021年8月31日
gcc 11.2 在线升级
摘要: 环境:centos 7 1、准备开发环境 $ yum groupinstall "Development Tools" $ yum install glibc-static libstdc++-static 2、下载源码 wget http://ftp.gnu.org/gnu/gcc/gcc-11.
阅读全文
posted @ 2021-08-31 09:52 钟齐峰
阅读(814)
评论(0)
推荐(0)
2021年8月30日
glibc-2.18升级
摘要: 1、下载文件下载地址:https://mirrors.tuna.tsinghua.edu.cn/gnu/glibc/glibc-2.18.tar.gz 2、安装部署解压tar -zxvf glibc-2.18.tar.gz 创建编译目录cd glibc-2.18 mkdir build 编译、安装c
阅读全文
posted @ 2021-08-30 13:00 钟齐峰
阅读(1384)
评论(0)
推荐(1)
2021年8月27日
WebAssembly环境搭建
摘要: Environment:Ubuntu 16.06 + emscripten URL: https://emscripten.org/docs/getting_started/downloads.html#linux 1. Installation emsdk # Get the emsdk repo
阅读全文
posted @ 2021-08-27 09:44 钟齐峰
阅读(596)
评论(0)
推荐(0)
2021年8月14日
栈和队列
摘要: 1、栈和队列 栈和队列都是以deque为底层容器的适配器。栈(stack)、队列(queue)、优先队列(priority_queue)这三种数据结构,准确的来说其实是一种适配器,因为底层都是以其他容器为基准。 栈:先入后出,只允许在栈顶添加和删除元素,称为入栈和出栈。 队列:先入先出,载队首取元素
阅读全文
posted @ 2021-08-14 20:38 钟齐峰
阅读(200)
评论(0)
推荐(0)
2021年8月13日
检测当前编译器支持c++版本
摘要: if (__cplusplus > 201703L) std::cout << "C++2a\n"; else if (__cplusplus == 201703L) std::cout << "C++17\n"; else if (__cplusplus == 201402L) std::cout
阅读全文
posted @ 2021-08-13 14:34 钟齐峰
阅读(433)
评论(0)
推荐(0)
2021年8月8日
deque概述
摘要: 1、简介 双端队列deque,与vector的最大差异在于: 一、deque运行常数时间对头端或尾端进行元素的插入和删除操作。 二、deque没有所谓的容器概念,因为它是动态地以分段连续空间组合而成随时可以增加一块新的内存空间并拼接起来。 虽然deque也提供随机访问的迭代器,但它的迭代器与list
阅读全文
posted @ 2021-08-08 16:44 钟齐峰
阅读(3641)
评论(0)
推荐(0)
2021年8月4日
c++ constexpr用法
摘要: 测试环境:windows10 + gcc8.1 1、constexpr产生背景 c++11以后,为了保证写出的代码比以往任何时候的执行效率都要好而进行了许多改善。其中,这种改善之一就是生成常量表达式,允许程序利用编译时的计算能力。常量表达式主要是允许一些计算发生在编译时期,而不是运行时期。这是一个很
阅读全文
posted @ 2021-08-04 15:52 钟齐峰
阅读(3324)
评论(0)
推荐(1)
2021年7月29日
Ubuntu 配置数据库开发环境(mysql oracle mssqlserver sybase)
摘要: 1、mysql sudo apt-get install libmysql++-dev //mysql连接库 2、ms sql server/sybase ./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdbl
阅读全文
posted @ 2021-07-29 11:47 钟齐峰
阅读(123)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
12
下一页
公告