Search:
Type: Posts; User: karnavor
Search:
Search took 0.04 seconds.
-
January 16th, 2014, 08:04 PM
Thanks, I'll look into all this!
-
January 16th, 2014, 04:25 PM
Thanks, I think I understand this now. So storing a vector of pointers will retain the derived object, rather than slicing it to the base object, which enables me to call the derived function via the...
-
January 16th, 2014, 04:02 PM
Hi,
Thanks for the responses. The reason I am writing this code is that I am writing a GUI, which has a set of buttons. But there are several different types of buttons. So, I have a "Button"...
-
January 16th, 2014, 03:02 PM
Hello,
I have a simple question about inheritance. Consider the following code:
Class Base
{
int type;
-
January 7th, 2014, 06:00 PM
Hello,
I am very new to database with C#, so hopefully this will just be a quick one.
I'm trying to create a new SQL database with Visual Studio 2013, with one table. I am following a tutorial,...
-
October 31st, 2013, 10:52 AM
Hello,
When running my code in Visual Studio, there is a particular point in the code where my program is crashing. To debug this, I am adding a break point in Debug mode just before that point,...
-
October 29th, 2013, 04:44 PM
Hello,
If I have a one-dimensional array of length 10, vector<int> x, and I want to assign all the elements to value 5, then I can do the following:
vector<int> x(10);
x.assign(10, 5);
-
Hello,
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).
If you are creating more...
-
March 1st, 2013, 10:34 AM
Hello,
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....
-
January 15th, 2013, 09:47 AM
Hello,
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...
-
September 7th, 2012, 12:58 PM
Hello,
I want to edit the contents of a file using fstream, but none of the modes in the fstream constructor work for me.
If I use ios::trunc, then the whole file is deleted - but I want to...
-
September 6th, 2012, 01:40 PM
Hello,
This is not strictly a C++ question, but I don't know where else to ask!
Anyway, I am writing a program to read and write EXIF data in a JPEG file; specifically, the GPS data.
I have...
-
December 7th, 2011, 02:00 PM
Hello,
I'm hoping that there is somebody out there who is familiar with OpenCV, as I have a very simple problem.
I have a linear equation Ax = B which I want to solve. This is done with the...
-
September 8th, 2011, 11:39 AM
Hello,
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...
-
July 27th, 2011, 06:30 PM
Hello,
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...
-
July 24th, 2011, 06:24 PM
But is it possible to write the vector.size() value at the beginning of the file, after I've written the rest of the file?
-
July 24th, 2011, 05:52 PM
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...
-
July 24th, 2011, 04:24 PM
Hi,
Thanks for your help. Losing the ios::app worked!
However, I have also come across something else peculiar.
If I use:
in.seekg(-(sizeof(int)), ios::end);
-
July 24th, 2011, 03:30 PM
Hello,
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...
-
July 22nd, 2011, 11:16 AM
Hi, thanks for your reply. The Wikipedia article states that:
"the Perron–Frobenius theorem ... asserts that a real square matrix with positive entries has a unique largest real eigenvalue and...
-
July 22nd, 2011, 10:38 AM
Hello,
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...
-
July 13th, 2011, 09:45 AM
Hello,
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...
-
Hello,
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...
-
March 15th, 2011, 03:15 PM
Hello,
What is the difference between the header files <header.h> and <header>?
I know that the <...> brackets indicate that the header file is located in some standard directory that the...
-
December 3rd, 2010, 04:20 PM
Hello,
I'd like to ask two different questions on a related topic please...
1. When I am writing float data to a text file, I want to set the precision. I know that with std::cout, you can...
|
Click Here to Expand Forum to Full Width
|