小编yes*_*aaj的帖子

字长,字符大小,整数大小和字节之间的关系

C++中字长,字符大小,整数大小和字节之间的关系是什么?

c++ int byte cpu-word

0
推荐指数
2
解决办法
1万
查看次数

是否有任何工具可以改善vc ++中的intellisense(vs2008)?

是否有任何免费工具可以改进Intellisense并在vc ++ 2008中提供代码片段?请不要发布商业工具

c++ intellisense visual-studio-2008 visual-studio visual-c++

0
推荐指数
1
解决办法
321
查看次数

排序功能不适用于在堆栈上创建的功能对象?

#include<iostream>
#include<vector>
#include<algorithm>
class Integer
    {
public:
    int m;
    Integer(int a):m(a){};
    };
class CompareParts
    {
    public:
        bool operator()(const Integer & p1,const Integer & p2)
            {
            return p1.m<p2.m;
            }
    }obj1;
int main()
    {
    std::vector<Integer> vecInteger;
    vecInteger.push_back(Integer(12));
    vecInteger.push_back(Integer(13));
    vecInteger.push_back(Integer(5));
    vecInteger.push_back(Integer(7));
    vecInteger.push_back(Integer(9));
    Integer obj2();
    std::sort(vecInteger.begin(),vecInteger.end(),obj1);
    std::sort(vecInteger.begin(),vecInteger.end(),obj2);
    }
Run Code Online (Sandbox Code Playgroud)

为什么第二排序函数中的obj2会导致编译错误.

c++ sorting functor

0
推荐指数
1
解决办法
1448
查看次数

这个程序的输出是什么?

当我试图在一个简单的c文件中运行编译并执行此语句时:

main(){ printf("%d");}
Run Code Online (Sandbox Code Playgroud)

在HP上,它给了我64,在AIX上它给了我804359524.

谁能告诉我这是什么行为.

c c++ unix linux

0
推荐指数
2
解决办法
351
查看次数

代表们在C++中的含义是什么?

委托人在c ++中的意思是什么,在c/c ++中进行排序功能,它将比较函数/仿函数作为最后一个参数,是委托的一种形式?

c++ delegates functor

0
推荐指数
1
解决办法
1166
查看次数

使用bitset代替使用手写位操作代码?

在手写的位置使用bitset是否有任何性能损失/增益?

如何在运行时使用bitset构建以下内容

  • 使所有2到5之间的位为零,即11110011.

c++ stl bit-manipulation bit bitset

0
推荐指数
1
解决办法
1588
查看次数