大约有 7,000 项符合查询结果(耗时:0.0190秒) [XML]
Linux常用命令(持续更新...) - C/C++ - 清泛网 - 专注C/C++及内核技术
...-depth=1
查找文件(例如/usr目录下查找包含'apache'的目录和文件):
find /usr -name apache
find /usr -name apache -type f (只找文件)
find /usr -name apache -type d (只找目录)
查看进程:
netstat -ntpl
解压:
tar -zxvf xxx.tar.gz
tar -xvf xxx.tar...
Linux automake自动编译全攻略 - C/C++ - 清泛网 - 专注C/C++及内核技术
...
AC_INIT([test], [1.0.0], [bugreport.test.com])
#指定项目名称和版本号
AM_INIT_AUTOMAKE(test, 1.0.0)
#检查编译器
AC_PROG_CC
AC_PROG_LIBTOOL
#输出Makefile文件
AC_CONFIG_FILES([
Makefile
lib/Makefile
])
AC_OUTPUT()
build.sh:(脚本说明了aut...
MFC非客户区完美自绘(标题栏,边框,标题按钮)例子 - C/C++ - 清泛网 - 专...
...代码是用VS2008+SP1开发的。
没什么关键技术,就是NCPAINT和NCCALLSIZE这两个处理好。绘制的时候用CWindowDC dc(this);,然后设置绘制的裁剪区域,按钮用Dui的思想绘制并封装成一个类CDUIButton,这样可以随便往标题添加任何按钮。
以...
error C2804:binary \'operator +\' has too many parameters - C/C++ - 清泛网 - 专注C/C++及内核技术
...对称的操作符,如算术操作符、相等操作符、关系操作符和位操作符,最好定义为普通非成员函数。因此+应该重载为普通非成员函数。这里重载为成员函数时多了一个this形参,故对于+操作符来说,出现参数过多的错误。
即书...
error C2872: “count”: 不明确的符号 - C/C++ - 清泛网 - 专注C/C++及内核技术
...
2) 使用命名空间引用变量,在命名空间中定义变量、函数和类。
#include <iostream>
using namespace std;
namespace global {
int count = 0;//重新定义一个命名空间
}
int increment()
{
return ++global::count;
}
int main()
{ ...
在vc中使用xtremetoolkit界面库-----简单控件的使用 - C/C++ - 清泛网 - 专...
...中的Custom Control来使用xtremetoolkitPro中更炫酷的控件了:
和上面的步骤一样,我们先添加两个Custom Control控件:
设置左边的Custom Control的ID 为 IDC_EDIT, Class为:CodejockSyntaxEditor (为什么要设为CodejockSyntaxEditor,我们到后在再说);
...
C++ ADO Excel中RecordSet.Open打开记录的两个参数adOpenKeyset、adLockBat...
...户删除的记录,但除无法查看其他用户添加的记录外,它和动态游标相似。其他用户所做的数据更改依然可见。
2 adOpenDynamic 使用动态游标。其他用户所做的添加、更改或删除均可见,而且允许 Recordset 中的所有...
error C2662: “Screen::move”: 不能将“this”指针从“const Screen”转...
...onst实现函数重载,定义两套函数,分别作为const成员函数和非const成员函数。
代码片段如下:
//通过是否为const成员函数实现重载
Screen& display(std::ostream &os)
{do_display(os);return *this;}
const Screen& display(std::ostream &os) const
...
passing xxx as \'this\' argument of xxx discards qualifiers - C/C++ - 清泛网 - 专注C/C++及内核技术
...义这个版本,因此编译器提示错误.
解决方法就是将getId和getName方法声明为const成员,即在函数末尾加上const关键字。
const 常量成员
error C2280: \'std::mutex::mutex(const std::mutex &)\' : attempting to...
...
解决方法:
将包含std::mutex的类的拷贝构造函数和赋值操作符重载函数,自定义或者标记为delete.
例如:
class Account {
public:
Account(int id_, double ba = 0.0) :id(id_), balance(ba){}
void withdraw(double amount){
balance -= amount;
}
...
