ah yes, i am already using inclusion guards.
il give the forward declaration gubbins a go shortly. if i understand correctly, its as simple as putting "class AppClass;" in?
cheers.
Type: Posts; User: combatdave
ah yes, i am already using inclusion guards.
il give the forward declaration gubbins a go shortly. if i understand correctly, its as simple as putting "class AppClass;" in?
cheers.
im going to guess no to inclusion guards, not entirely sure what they are...
i do have a small amount of global data, but that is held inside the main.cpp file, and nowhere else
cheers for the...
Hiya, got a bit of a problem with some of my classes. Each class has its own files (such as MyClass.cpp and MyClass.h), and all is going swimmingly.
My code is designed such that there is a class,...
can a global be declared from inside a function, though? sorry i probably should have said it more clearly to start with...
cheers for all the replies, nice to have such an active forum...
creating them on the heap, i assume that gives me pointers to the location? i can deal with that. then i have to make sure to free...
i know that this is a simple question, and i know that theres a simple answer, but for the life of me i cant remember how to do it. basically, i have a class (called AgentClass), and as im using a...
cout << "*****" << endl; ???
what text?
ah now i feel like an idiot... a happy idiot, but an idiot none the less =)
it wasnt a coding error at all, but an error in the sums i had entered. il spare the details, but i now have a neural...
*sulk*
i think you have a fair point. I'll let you know how it goes.
enahs:
thanks for the advice, im using visual studio.net 2003. I have a feeling that i have a float which is getting ridiculously large or ridiculously small (ive seen it happening, so i know its...
im guessing just a while loop... while (cin.get()==0) perhaps? im unsure, best get somebody more knowladgeable to answer! anyway heres it properly indented (well a bit more properly).
#include...
back again;
//set the weights for the node
Nodes[i]->SetWeights(Weights);
cout << endl;
cheers, will give it a go
alright, well you asked for it :P
void MLP::Learn(int numegs, double testset[], double lrate)
{
int ct=0;
int i=0;
int egct=0;
thats the problem, all i have is the bare minimum code for what i need to do. Basically, i got given 3 files, one .cpp file which contains main and handles the input from the user, one header file...
hiya
i have some work to do for a uni assignment in c++ (neural networks), and there is a bug in it which is causing silly values and i have NO idea why, or what the problem is. what would be more...
ah cheers, didnt know that was what the msdn was. thanks for the pointers, have a good night mate.
okay i can see why that arrays or pointers would need something else to copy them (memory allocation etc), and i understand constructors/destructors, but what is the syntax for defining a copy...
cheers guys! didnt expect to get one reply so quickly let alone two =)
the strings lib looks excellent, i was toying round with some OOP and inheritance the other day and was having some trouble...
hi there, first post etc, bit of a c++ newb but then i guess everyone was at one point, eh?
anyway, im not so sure on the use of the two libs "string" and "vector". ive searched on google but...