I built a win32 application. In the program I use MessageBox on several locations. For some reason some messege boxes cause crashes to the program. I even tried checking the returned value, but the...
Type: Posts; User: misterowakka
I built a win32 application. In the program I use MessageBox on several locations. For some reason some messege boxes cause crashes to the program. I even tried checking the returned value, but the...
I run a clear method, right after it I call the method to return the vector and compare it to another. Then I check if the second vector is empty too.
I figured out that the problem is something...
Just checked; No, it is not empty. I guess that the problem is the output of this method
const vector<int>& Robot::GetSamplesReadUsingRobot() const
{
return samplesRobotToKalmanFilter;
}
...
I have three classes.
Trial
Robot
WriteToFile
Trial is holding a pointer to a WriteToFile object and for a Robot object.
Trial is calling Robot method to return a string and passes it to his...
Thank you
When generating a new instance of a class, do the constructors of all private members are called automatically? And what about the case I want to call a non default constructor?
class Something...
I'm trying to make my computer play sounds. I know there are old DOS functions called sound(); delay(); nosound(); that don't work on visual c++.
I tried using Beep(). This one doesn't play sounds...
Found it. Should add an astrix
char tempchar=*notes_iterator->begin();
I have a vector of strings
vector<string> notes;
Each string is built from a collection of chars.
I want to extract the first char:
vector<string>::iterator notes_iterator;
I have a program with several cpp and header. I want a common instance of one of the classes for all places needed.
What I did was to place (class Trials * currenttrial) inside another header file,...
Correct! Thanks!
You little... :-)))
Oh man...you're the best. It's 1:20Am here, I hardly see, almost lost hope and you did it. You've got no idea how much I thank you.
Yep. Still, the same problem. While performing throw it says
Unhandled exception at 0x00435768 in HW0.exe: 0xC0000005: Access violation reading location 0xccccccc0.
and shows me dbgdel.cpp,...
I already tried changing it. (#27) and it didn't work...
You're right , but not thoroughly. I use new only after those two first throws, and the error happens on the first throw, before using new...
The problem is caused while performing the throws...I can't check otherwise because I have no other way to control errors rather than try-catch...
About the other issues, thank you, and yes these...
Really good idea, which I was sure will solve the problem...But most unfortunatly it didn't...Bummer...
void ReadFile(const string& filename) throw(ERRORS);
void FileHandling::ReadFile(const...
I can't believe it. Damn. A few moments ago everything worked just fine. I made some changes and now when it is supposed to throw an exeption I get some memory leak and dbgdel.cpp is showing up!!!...
So how do I verify if the user inserted an int when I ask him to instead of a char for instance?
I thought the way is
int num;
cout<<"insert a num";
cin>>num;
if(!num)
cout<<"you moron,...
Solved.
You're the man! Thank you all!
1) I ran it using the debugger and the throw NoSuchFile is called but not handled.
2) I did if(!numberOfRows) to examine whether there is something different rather than a number in the first line...
You are absolutely right. I fixed what you said. Even though, the catch still doesn't work...
For some reason my throws are not handled. Would appreciate your help.
main()
int main()
{
displayinfo();
try
{
FileHandling operations;
For whoever might need it. I had to create this matrix class for dealing with kalman filter. Since you helped me so much in this forum I soppuse that the final working code belongs to everyone.
...
If you have two 2D vectors, one is a(2X1) the other b(1X2).
axb=matrix(2x2)
bxa=number...
My problem is as follows. Consider the following situation
b x matrix x a