大约有 4,500 项符合查询结果(耗时:0.0170秒) [XML]
A free tool to check C/C++ source code against a set of coding standards? [closed]
...a tool for Java ( Checkstyle , JCSC ), but I can't seem to find one for C/C++. I am not looking for a lint-like static code analyzer, I only would like to check against coding standards like variable naming, capitalization, spacing, identation, bracket placement, and so on.
...
Which C++ idioms are deprecated in C++11?
...
Final Class: C++11 provides the final specifier to prevent class derivation
C++11 lambdas substantially reduce the need for named function object (functor) classes.
Move Constructor: The magical ways in which std::auto_ptr works are no lo...
What should main() return in C and C++?
... the correct (most efficient) way to define the main() function in C and C++ — int main() or void main() — and why? And how about the arguments?
If int main() then return 1 or return 0 ?
...
Forward declaration of a typedef in C++
...o forward declare a C-style struct that was defined using typedef, in some c++ code, I have found a solution that goes as follows...
// a.h
typedef struct _bah {
int a;
int b;
} bah;
// b.h
struct _bah;
typedef _bah bah;
class foo {
foo(bah * b);
foo(bah b);
bah * mBah;
};
...
How do I declare a 2d array in C++ using new?
...t will create an array of an allocated-type int[X][Y]. This is a "hole" in C++'s type system, since the ordinary type system of C++ doesn't have array dimensions with sizes not known at compile time, thus these are called "allocated types"
– Johannes Schaub - litb
...
编译器内部的秘密--微软的编译器是如何解析Try/Catch/Throw的 - C/C++ - 清...
...rd->ExceptionCode != 0xE06D7363)
return EXCEPTION_CONTINUE_SEARCH; //非C++类异常,则继续寻找SEH链表的下个结构进行处理
if(WeHaveAHandlerForThisTypeSomeWhere(info->ExceptionRecord))
return EXCEPTION_EXECUTE_HANDLER; //执行处理
return EXCEPTON_CONTINUE_SEARCH;
}
/* ...
编译器内部的秘密--微软的编译器是如何解析Try/Catch/Throw的 - C/C++ - 清...
...rd->ExceptionCode != 0xE06D7363)
return EXCEPTION_CONTINUE_SEARCH; //非C++类异常,则继续寻找SEH链表的下个结构进行处理
if(WeHaveAHandlerForThisTypeSomeWhere(info->ExceptionRecord))
return EXCEPTION_EXECUTE_HANDLER; //执行处理
return EXCEPTON_CONTINUE_SEARCH;
}
/* ...
编译器内部的秘密--微软的编译器是如何解析Try/Catch/Throw的 - C/C++ - 清...
...rd->ExceptionCode != 0xE06D7363)
return EXCEPTION_CONTINUE_SEARCH; //非C++类异常,则继续寻找SEH链表的下个结构进行处理
if(WeHaveAHandlerForThisTypeSomeWhere(info->ExceptionRecord))
return EXCEPTION_EXECUTE_HANDLER; //执行处理
return EXCEPTON_CONTINUE_SEARCH;
}
/* ...
编译器内部的秘密--微软的编译器是如何解析Try/Catch/Throw的 - C/C++ - 清...
...rd->ExceptionCode != 0xE06D7363)
return EXCEPTION_CONTINUE_SEARCH; //非C++类异常,则继续寻找SEH链表的下个结构进行处理
if(WeHaveAHandlerForThisTypeSomeWhere(info->ExceptionRecord))
return EXCEPTION_EXECUTE_HANDLER; //执行处理
return EXCEPTON_CONTINUE_SEARCH;
}
/* ...
编译器内部的秘密--微软的编译器是如何解析Try/Catch/Throw的 - C/C++ - 清...
...rd->ExceptionCode != 0xE06D7363)
return EXCEPTION_CONTINUE_SEARCH; //非C++类异常,则继续寻找SEH链表的下个结构进行处理
if(WeHaveAHandlerForThisTypeSomeWhere(info->ExceptionRecord))
return EXCEPTION_EXECUTE_HANDLER; //执行处理
return EXCEPTON_CONTINUE_SEARCH;
}
/* ...