C++
Terrible performance with QMediaPlayer and QVideoWidget
I see a terrible performance while trying to play videos with QtMobility 1.2.0 and Qt 4.7.4 on Ubuntu 10.10 (Pentium 4 2.80GHz).[详细]
2023-04-13 09:21 分类:问答How to pass a function in parameter with Boost::Phoenix?
It\'s my first post here so plese be kind if I 开发者_开发问答don\'t respect the \"ways and customs\" :)[详细]
2023-04-13 09:15 分类:问答TBB task_groups without using stack
I would like to perform a post-order tree traversal in C++. The tree can be so deep that I cannot use recursion (it exhausts the stack). Instead I create an std::stack<...> that puts everything[详细]
2023-04-13 09:15 分类:问答How do I allocate memory by using new in C++?
I have following s开发者_C百科tatic declaration of memory: void* array[5000]; How I can allocate the same memory using operator new in C++?void **array = new void*[5000];[详细]
2023-04-13 09:09 分类:问答bsort example from programming pearls
In Programming Pearls there is an algorithm that sorts varying length arrays but sorts in time proportional to the sum of their length. For example, if we have a record array x[0...n-1], and each reco[详细]
2023-04-13 09:07 分类:问答Open a file using full path in C++
quick question really that has me momentarily stumped. This program searches through a a file directory and all of its sub directories. When it gets to a file that\'s not a directory type I want to op[详细]
2023-04-13 09:06 分类:问答Firebreath how to know if my method is called without debugging
I am using Objective-C++ in my firebreath project. The problem is that I am using Xcode 4 and I can not find the way to debug my project. So I have thought about if my method is been called from the w[详细]
2023-04-13 09:00 分类:问答value_type for a map having pointers as key
For what I know, C++ defines map<a,b>::value_type as pair<const a,b> What will happen if I use a pointer type as key type in map, i.e., is[详细]
2023-04-13 08:33 分类:问答To generate a subset of size n one by one to reduce the complexity?
void AlgoMMPCbar::subs(const std::vector<unsigned int>& org, const std::vector<unsigned int>& pre, size_t k, size_t n, SubSets& c){[详细]
2023-04-13 08:31 分类:问答MySQL++ SSL Support on Linux
I am attempting to get MySQL++ to work correctly on Debian 6 with SSL support. I have tested everything on Windows 7 and it works great. Everything is encrypted. I am having a little bit of trouble po[详细]
2023-04-13 08:24 分类:问答