大约有 4,500 项符合查询结果(耗时:0.0295秒) [XML]

https://stackoverflow.com/ques... 

General guidelines to avoid memory leaks in C++ [closed]

What are some general tips to make sure I don't leak memory in C++ programs? How do I figure out who should free memory that has been dynamically allocated? ...
https://stackoverflow.com/ques... 

How can I add reflection to a C++ application?

I'd like to be able to introspect a C++ class for its name, contents (i.e. members and their types) etc. I'm talking native C++ here, not managed C++, which has reflection. I realise C++ supplies some limited information using RTTI. Which additional libraries (or other techniques) could supply this ...
https://stackoverflow.com/ques... 

Forward declaring an enum in C++

...lues, the compiler can't know the storage required for the enum variable. C++ Compiler's are allowed to specify the actual storage space based on the size necessary to contain all the values specified. If all that is visible is the forward declaration, the translation unit can't know what storage ...
https://stackoverflow.com/ques... 

Understanding the meaning of the term and the concept - RAII (Resource Acquisition is Initialization

Could you C++ developers please give us a good description of what RAII is, why it is important, and whether or not it might have any relevance to other languages? ...
https://stackoverflow.com/ques... 

Is the VC++ code DOM accessible from VS addons?

Visual Studio IntelliSense for VC++ includes the "complete" EDG C++ parser (also used by Intel and others). Since the C# Code DOM is accessible to addons (correct me if I'm wrong), is the C++ Code DOM also accessible? Can this be used to analyse an open VC++ project within the VS environment? ...
https://stackoverflow.com/ques... 

Why does C++ compilation take so long?

Compiling a C++ file takes a very long time when compared to C# and Java. It takes significantly longer to compile a C++ file than it would to run a normal size Python script. I'm currently using VC++ but it's the same with any compiler. Why is this? ...
https://stackoverflow.com/ques... 

How does a language expand itself? [closed]

I am learning C++ and I've just started learning about some of Qt 's capabilities to code GUI programs. I asked myself the following question: ...
https://stackoverflow.com/ques... 

What does the restrict keyword mean in C++?

I was always unsure, what does the restrict keyword mean in C++? 6 Answers 6 ...
https://stackoverflow.com/ques... 

Do you (really) write exception safe code? [closed]

... course, I do. This is the reason Java lost a lot of its appeal to me as a C++ programmer (lack of RAII semantics), but I am digressing: This is a C++ question. It is, in fact, necessary when you need to work with STL or Boost code. For example, C++ threads (boost::thread or std::thread) will throw ...
https://stackoverflow.com/ques... 

Why can't C++ be parsed with a LR(1) parser?

...eresting thread on Lambda the Ultimate that discusses the LALR grammar for C++. It includes a link to a PhD thesis that includes a discussion of C++ parsing, which states that: "C++ grammar is ambiguous, context-dependent and potentially requires infinite lookahead to resolve some ambigu...