C++
Acoolbest
这个作者很懒,什么都没留下…
展开
-
error: cannot pass objects of non-trivially-copyable type
error: cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string}’ through ‘...’原创 2015-11-26 11:30:14 · 6763 阅读 · 0 评论 -
unable to execute No such file or directory,32位linux编译的程序在64位linux运行不了
在Ubuntu14.04中,用32位Ubuntu编译后,拿到64位运行时, 提示unable to execute No such file or directory, 但是目录下确实有这个可执行文件 其实原因是缺少32位机上的一些库,安装一下就好了 sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 然后遇到提示就填y,一原创 2015-12-02 10:08:12 · 2180 阅读 · 0 评论 -
24位深的bmp图片转换为16位深RGB565格式的bmp图片源码
/** 24位深的bmp图片转换为16位深RGB565格式的bmp图片 **/ #include <iostream> #include <stdio.h> #include <string.h>using namespace std;typedef unsigned char uint8; typedef char int8; typedef unsigned short uint16原创 2017-05-17 16:42:04 · 6641 阅读 · 1 评论