Search:

Type: Posts; User: combatdave

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,996

    ah yes, i am already using inclusion guards. ...

    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.
  2. Replies
    7
    Views
    1,996

    im going to guess no to inclusion guards, not...

    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...
  3. Replies
    7
    Views
    1,996

    Class files including other classes

    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,...
  4. can a global be declared from inside a function,...

    can a global be declared from inside a function, though? sorry i probably should have said it more clearly to start with...
  5. cheers for all the replies, nice to have such an...

    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...
  6. instance of a class disappearing after function ends

    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...
  7. Replies
    9
    Views
    2,724

    cout

    cout << "*****" << endl; ???

    what text?
  8. Replies
    15
    Views
    3,135

    ah now i feel like an idiot... a happy idiot, but...

    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...
  9. Replies
    15
    Views
    3,135

    *sulk* i think you have a fair point. I'll let...

    *sulk*

    i think you have a fair point. I'll let you know how it goes.
  10. Replies
    15
    Views
    3,135

    enahs: thanks for the advice, im using visual...

    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...
  11. Replies
    5
    Views
    987

    im guessing just a while loop... while...

    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...
  12. Replies
    15
    Views
    3,135

    back again; //set the weights for...

    back again;





    //set the weights for the node
    Nodes[i]->SetWeights(Weights);

    cout << endl;
  13. Replies
    15
    Views
    3,135

    cheers, will give it a go

    cheers, will give it a go
  14. Replies
    15
    Views
    3,135

    alright, well you asked for it :P void...

    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;
  15. Replies
    15
    Views
    3,135

    thats the problem, all i have is the bare minimum...

    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...
  16. Replies
    15
    Views
    3,135

    etiquette (sp?) of posting code

    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...
  17. Replies
    8
    Views
    996

    ah cheers, didnt know that was what the msdn was....

    ah cheers, didnt know that was what the msdn was. thanks for the pointers, have a good night mate.
  18. Replies
    8
    Views
    996

    okay i can see why that arrays or pointers would...

    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...
  19. Replies
    8
    Views
    996

    cheers guys! didnt expect to get one reply so...

    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...
  20. Replies
    8
    Views
    996

    queries with string and vector libs

    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...
Results 1 to 20 of 20