void test()
{
return ;
}
compiles fine...
Is it possible to "return ;" in a function that return void???
Type: Posts; User: ripper079
void test()
{
return ;
}
compiles fine...
Is it possible to "return ;" in a function that return void???
Iīll love to help you but you post waaaaayy to much code. Isīs all confusing. Post only relevant code such as.
fuction iterate
Declaration/defination class Rect_Node
maybe what code line you...
Hmmm you are probably right guys. Iīve been having this PSU since I purchased the computer and because i havnīt experienced any problem until now I thougt it was okey. Iīve desided to order a new PSU...
Athlon XP 3200+
Asus A7N8X-E Deluxe (Rev 1012)
1,5GB RAM PC3200
Seagate 200GB IDE (Windows partition)
2 X Seagate 120GB SATA (striping)
GeForce 6800 GT
CI-6A21 300W
After having tons of...
Athlon +3200
Asus A7N8X-E Deluxe (Rev 1012)
1,5GB RAM PC3200
Seagate 200GB IDE (Windows partition)
2 X Seagate 120GB SATA (striping)
GeForce 6800 GT
CI-6A21 300W
After having tons of...
Hmm, pretty new to c++...I donīt want to be rude but templates (particular class) shoudlnīt be learned to a "im pretty new to c++" in c++. You canīt run if you canīt walk :(. But I will make a try.
...
just out of curosity what happen when you instantiate your class (M) template with a primitive datatype?
Iīm not sure but shouldn't M::print() also be templated??
Where is pointer t defined and what is the error message?
try this
if (fillup == 0.0)
insteed
LatticeNode::LatticeNode(Cell *c)
{
num = NULL; //maybe num = 0; ?
next = NULL;
prev = NULL;
t = c;
}
That code snippet shoudnīt case any problem as long you dont delete...
Yes.
Unfortunately there is no support for that in c++. You will have to use some other libraries/tool than thoose in standard c++. If you are programming in Windows there are surely some useful...
bennyandthejets are right and a const reference can only invoke const member-functions. As for your two code-snippet comparisment you are right. The code doesnīt differ (except for the const-ness of...
Resource file? That sounds like you are compiling a win32 program. Choose to make a console program insteed and it should work (I have never used bloodshed 4). Also post relevant code that causes the...
cout doesnīt know how it should display Point. Try overload operator << for class Point (I assume that corner1 and corner2 are instances of class Point).
Hmm donīt really understand your problem (be more specific) but I try anyway ^^. A while statement look like this
while(some condition)
{
statements;
}
The statements will executed as...
Of course there is :), but I donīt know if this is a good solution. Start from the end-index and work your way to the beginning-index of the array. Beware of potential errors.
// Do not
//*...
You cannot assign a char-array like that. Use strcpy (for char array)and c_str (for std::string objects). By using only std::string objects would certainly make life easier.
std::string n1("Johnson");
std::string n2("Sam");
std::string nresult = n1 + std::string(" ") + n2;
Donīt forget include correct headers.
P.S. The moderators are gonna kill you for 3...
Const members (nonstatic) can ONLY be initialized in the initialization list
class Test
{
public:
Test();
private:
const int A;
};
Remeber that your compiler is your friend. It will (usually) find the errors for you.
In Town constructor there is an illigal statement. You cant assign values to an array like that
...
Why not post relavant code that causes the error? It sure would make it easier for us to help you. Also read this
Donīt think so, check in this for more info.
I must agree with jlou. Post more relevant code. Step through the code when you for the first time pushes to the vector and see it both values are the same. You are probably changing...
Thats a lots of code to look through. My best advice would be to use a debugger and follow the code until the error occurs.