Search:
Type: Posts; User: jnmacd
Search:
Search took 0.03 seconds.
-
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
-
I am using Qt with the mingw compiler.
I'm having a problem with the SetCommState function from the Windows API.
It seems like any time I run SetCommState, it will get itself into an infinite...
-
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,...
-
April 8th, 2011, 10:53 PM
You are not understanding arrays. You are still not accessing within the boundaries.
-
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!
-
March 8th, 2011, 11:31 PM
The big problem here is that you are using char's instead of strings.
If you want to have a function return a string value, your life will become infinitely times better if you use std::string....
-
March 8th, 2011, 11:19 PM
You currently have xPoint and yPoint set to private inside pointType. They need to be 'protected' so that circleType can inherit it.
-
March 7th, 2011, 11:00 PM
What's this have to do with C++??
-
March 7th, 2011, 07:57 PM
First order of business, get your pointType functions correct.
What do you expect setPoint and getPoint to do?
You currently have them both defined as accepting nothing and returning nothing.
...
-
March 5th, 2011, 01:29 AM
http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.2
-
March 5th, 2011, 01:27 AM
you say you want denominator greater than zero, but in your code you ask for just the opposite.
you need to do something like
int denom = 0;
while (denom <= 0)
{
cout << "Enter denom:...
-
March 5th, 2011, 01:23 AM
char s[3];
memcpy(s, "ABC", 3);
This is asking for trouble unless you know what you are doing...
-
March 1st, 2011, 11:34 PM
Well your code is impossible to read with all the insane formatting going on.
I see that you have a large switch statement for month input.
You need break statements after each case, otherwise when...
-
March 1st, 2011, 11:19 PM
You need to wrap your cout and cin statements in {}
Your current code is actually...
for (x = 1; x < nRes; x = x + r_i)
cout << "Next resistance? >";
cin >> r_i;
-
February 20th, 2011, 11: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, 10:26 PM
No idea where to start?
Surely you can start with
int main()
{
return 0;
}
-
February 14th, 2011, 01:22 PM
http://doc.trolltech.com/4.1/deployment-windows.html
-
February 8th, 2011, 09:47 PM
Did you forget the semicolon?
You never told us what error message you were getting
|
Click Here to Expand Forum to Full Width
|