I am just wondering what the best practice is for when to use static classes (by static class, I mean a class which has only static attributes and functions).
I have a very general question about object-orientation programming. I have been programming for a few years, but I'm just wondering what the best practice is for this particular situation....
I have a Visual Studio 10 Project, and I want to rename both the Project, and the Solution. To do this so far, I have right-clicked on the Project or Solution in the Solution Explorer, then...
I have a library that I want to link to with Visual Studio 10. It is a dynamic-link library, with a .dll file and a .lib file. I am following what I think is the correct procedure for...
I have a fairly basic question about compiling libraries. Suppose that I want to use an open-source library that has been written by somebody else. Typically, when I go to the website to...
The reason I need that piece of code is because I need to read the last entry in the data file, before I read the rest of the file. When creating the file, I am adding numbers from an array to the...
I am saving data to a file "myfile.dat". Every time I save new data, I want to eliminate the existing file and start a new file. From what I know, setting the ios::trunc flag should do...
I am trying to use the GNU Scientific Library (GSL) to compute the leading eigenvector (corresponding to the largest eigenvalue) of a matrix M of size N (N ~ 100). M is square and...
I am using a computer vision C++ library called OpenCV, which has a function "int waitKey(int delay)". This function waits for a user input key, for a specified number of milliseconds. It...
I am running Windows 7 on a Mac, using Apple's Bootcamp utility, such that the Windows installation is native. However, I am finding some issues when programming the Windows API using...
I have two classes, Class1 and Class2, declared in two header files, "class1.h" and "class2.h". Each class contains a member instance of the other class. If I #include the necessary header...
I know that when writing a class declaration, if the class contains an array of fixed length, then the length of that array can be initialized in the class declaration, without having to do...
I'm sure this is a very simple issue, but it is confusing me a lot right now. So I am writing a program which uses a .dll file and a .lib file. I don't know much about these, but from what...
I am writing a program to estimate the fundamental matrix between two images, using OpenCV. This is a computer vision technique, but the error I am getting is something to do with memory in...
I wanted to create a custom control in Visual Studio, and then add it as a component to a form. So, I added a new "User Control" to the project, and edited it by dragging and dropping...