October 18th, 2011 07:07 AM
I think this is it right?...
http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.2
October 11th, 2011 03:50 PM
Let me guess, it goes into an infinite loop.
Use your debugger and step through the code.
In fact, just step through the code in your head and determine what is going to happen.
September 21st, 2011 02:37 PM
I can't see the link, but your compiler does not know what 'string' is.
#include <string>
#ifndef MAIN_H
class MyClass
{
public:
September 21st, 2011 02:33 PM
this -> name = new char[strlen(nm)] ;
This does not allocate enough memory for
strcpy(this->name , nm);
Use std::string.
September 21st, 2011 11:59 AM
You should read the documentation of accept()
It it fails, it will set the errno variable to show why it failed.
http://www.linuxhowtos.org/manpages/2/accept.htm
September 15th, 2011 12:40 PM
How about you allocate memory for 'table' in readfile()?
Why do you even make this a pointer?
hashtable * table;
table->add(x);
September 13th, 2011 03:07 PM
Where is the current software located? On a PC? Microcontroller?
How is the data being transmitted to the motors? RS232?
I'm confused
April 18th, 2011 06:15 AM
So when you run it through your debugger, what value gets passed?
April 13th, 2011 08:31 PM
You declare tempNode as a pointer and to access it you use ->
However, you are
tempNode=tempNode.getLeftNode();
getLeftNode() does not return a pointer according to your Node specification,...
March 26th, 2011 06:08 PM
Qt has it's own IDE and compiler.... works great.
I used Visual Studios for years, it only took a few days of using Qt to fall in love with it.
I highly recommend it!
February 20th, 2011 10:55 PM
It will also go into an infinite loop if someone actually types 'Options'
Same problem with the other while loops
February 15th, 2011 09:26 PM
No idea where to start?
Surely you can start with
int main()
{
return 0;
}
February 14th, 2011 12:22 PM
http://doc.trolltech.com/4.1/deployment-windows.html
February 8th, 2011 08:47 PM
Did you forget the semicolon?
You never told us what error message you were getting