C++
What causes the stuttering framerate in this simple SDL rendering loop?
I wrote a very basic test to see if SDL would work properly on my system. I assumed it would run perfectly smoothly because the drawing code is very simple, but it is not smooth at all, and looks bad[详细]
2023-04-13 07:53 分类:问答Changing QAbstractTableModel headerData using the role
I have a subclass class TableModel : public QAbstractTableModel I override the headerData method as follow:[详细]
2023-04-13 07:50 分类:问答How to display duplicate characters in the string?
I have writ开发者_开发百科ten a program to display the duplicate character(s) in a string, but it displays the characters again if it comes more than 2 times. Any solution to find it exactly?[详细]
2023-04-13 07:49 分类:问答parallel program compiling error
I write a parallel code that I can compile it and run it under win7 but now I have to run it under linux ubuntu 11.04 when I co开发者_开发知识库mpile my code I get this error:[详细]
2023-04-13 07:48 分类:问答QWidget per-pixel translusency
I\'m looking at making a QWidget partially transluscent. QWidget::setMask can set a per-pixel transparency, like this, but it\'s either-or: not transluscent.[详细]
2023-04-13 07:47 分类:问答Automatic type in Boost's Property Tree
Currently I have this code: if(!variables[\"width\"].defaulted()) { configTree.put(treeNames[\"width\"], variables[\"width\"].as<int>());[详细]
2023-04-13 07:38 分类:问答C++ shared memory leak, how to clear shared memory?
I am using Qt and trying to achieve a single instance application by applying this solution in Linux(ubuntu). The problem is that if the application unexpectedly finishes(seg. fault or user kills it)[详细]
2023-04-13 07:37 分类:问答Memory leak detection for mixed mode projects: managed, unmanaged and native
I have a Visual Studio 2010 solution that contains C# (managed), C++/CLI (unmanaged) and pure C++ (native) projects. I would like to perform memory leak detection across all 3 projects or at least aro[详细]
2023-04-13 07:29 分类:问答Pointers to functions and derived classes
I\'m having a problem with g++ and how templates interact with pointers to functions. Consider the following declaration of a template.[详细]
2023-04-13 07:13 分类:问答C++ - Basic Error with Arrays of Base Classes
I am a bit stuck right now. I have a base class called B开发者_如何学运维aseBond. ZeroCouponBond and CouponBond inherit from that class. I am looking to create an array that contains both types of bon[详细]
2023-04-13 07:12 分类:问答