Search:

Type: Posts; User: Smeep

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    15
    Views
    2,443

    Lol, 7stud, you'll appreciate this more than...

    Lol, 7stud, you'll appreciate this more than anyone else here, but that's what I'm doing with my Orc at the moment.

    Attempting to make a class (monster) So that I could just use it to define Orc....
  2. Replies
    48
    Views
    3,863

    Lol, I've already run in to my next set of...

    Lol, I've already run in to my next set of problems, but this time I have some limited Idea about them, so it shouldn't be a problem.
  3. Replies
    48
    Views
    3,863

    I did. That worked. Then I added monster.cpp...

    I did. That worked.

    Then I added monster.cpp and monster.h.

    There was an error. (i typed #end instead of #endif)

    So I fixed that.

    AND IT F@£"!G WORKS!
  4. Replies
    48
    Views
    3,863

    That works. (no result as such, just runs and...

    That works. (no result as such, just runs and closes straight away)

    What I'm going to do, is get all my code, then remake the project. Just like I did with yours. Maybe Something went odd along...
  5. Replies
    48
    Views
    3,863

    Roger wilco. Will report back with results.

    Roger wilco. Will report back with results.
  6. Replies
    48
    Views
    3,863

    Nope :( Still not recognising GetStat() ...

    Nope :(

    Still not recognising GetStat()

    I'm guessing a problem with Dev-C++
  7. Replies
    48
    Views
    3,863

    I've changed that to Orc(); That correct?...

    I've changed that to

    Orc();

    That correct?

    Man I love coding. ;) I made the biggest thread on the page.
  8. Replies
    48
    Views
    3,863

    Stupidly, I knew that. An honest mistake. ...

    Stupidly, I knew that. An honest mistake.

    Right now, In statcheck.cpp, I've changed the function getstat() definition to



    // statcheck.Cpp
    #include <cstdio>
    #include <cstdlib>
    #include...
  9. Replies
    48
    Views
    3,863

    Lol, I've been reading reading and re-reading...

    Lol, I've been reading reading and re-reading this entire thread.

    I'm pretty sure I'm getting there. Let me try "explaining" it.

    In a .h file, you are basically letting the other files know,...
  10. Replies
    48
    Views
    3,863

    Yeah, All the above works. monster.h already...

    Yeah, All the above works. monster.h already works. It's GetStat in statcheck.h and statcheck.cpp that doesn't work.

    Monster.cpp is calling in GetStat() from statcheck.cpp/h

    That's where it...
  11. Replies
    48
    Views
    3,863

    It is exactly the same.

    It is exactly the same.
  12. Replies
    48
    Views
    3,863

    I don't understand what that has to do with why...

    I don't understand what that has to do with why my compiler won't recognise the function that I have?
  13. Replies
    48
    Views
    3,863

    In monster.h, it IS #endif, I just copied it...

    In monster.h, it IS #endif, I just copied it wrong.

    Should it be (int intelligence) if intelligence is already declared? (edit - It should be "mana" there, intelligence is already defined as 2,...
  14. Replies
    48
    Views
    3,863

    Right. Scrap the previous post. I'm still having...

    Right. Scrap the previous post. I'm still having linker problems, even though I have put them all in the same project.

    Here's the differen't files I have.

    Main.cpp



    #include <iostream>...
  15. Replies
    48
    Views
    3,863

    eGads. I am now so very happy. I could wet the...

    eGads. I am now so very happy. I could wet the bed! WOOHOOOOO!

    Thank you all so much!

    Seems that my happines was meant to be shot down.



    //StatCheck.H
    #ifndef STATCHECK_H
  16. Replies
    4
    Views
    2,396

    I did, thank you so much. You really made my day.

    I did, thank you so much. You really made my day.
  17. Replies
    4
    Views
    2,396

    How to add a file to a project in bloodshed.

    As per tip given, I have made a thread about how to add a file to a project in bloodshed. I'm using version 4.9.8.0

    Here's the original suggestion from the thread:
  18. Replies
    48
    Views
    3,863

    thanks for the advice.

    thanks for the advice.
  19. Thread: Tutorial Ideas.

    by Smeep
    Replies
    2
    Views
    911

    Good god yes. I think I found an FAQ on it, but...

    Good god yes. I think I found an FAQ on it, but the problem was that it baffled me. I need a simple tutorial. As you will see if you visit my other thread, I don't currently know what is wrong, but...
  20. Replies
    48
    Views
    3,863

    This is exactly what I am trying to avoid. The...

    This is exactly what I am trying to avoid. The point in this particular project is teaching me to use multiple files. And From what I can see, I know roughly how it works.

    I am useing
    ...
  21. Replies
    48
    Views
    3,863

    I don't know, you tell me. I am, to be quite...

    I don't know, you tell me. I am, to be quite honest, diving in head first to a dark hole. I don't know why not use classes. Would a class work for many differen't other files?
  22. Replies
    48
    Views
    3,863

    I have done this. When I compile, it tells me ...

    I have done this. When I compile, it tells me


    [Linker error] undefined reference to `someFunc()'

    I'm still checking everything over right now.
  23. Replies
    48
    Views
    3,863

    #include #include #include...

    #include <cstdio>
    #include <cstdlib>
    #include <iostream>
    #include "StatCheck.H"
    #include <cstring>
    using namespace std;

    int main(int nNarg, char* pszArgs[])
    { ERROR IS HERE
  24. Replies
    48
    Views
    3,863

    Cheers. Right, I'm getting the following error...

    Cheers.

    Right, I'm getting the following error right now,

    "9 C:\Dev-Cpp\CPP_Programs\Chap01\rpg\orc.cpp
    declaration of C function `int "
    When I try to compile it.
  25. Replies
    48
    Views
    3,863

    Hmmm, not sure we are on the same page. I want...

    Hmmm, not sure we are on the same page.

    I want to have a file, call it monster X, which uses a file, Statcheck to determin the amount of mana it has.

    I also want to be able to use Statcheck,...
Results 1 to 25 of 26
Page 1 of 2 1 2