Search:

Type: Posts; User: ExDHaos

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    799

    Hmm, ok thanks.

    Hmm, ok thanks.
  2. Replies
    4
    Views
    799

    well i meant stuff like the fact that there...

    well i meant stuff like the fact that there shouldn't be more then 2 side-effect in a function(or something like that)
  3. Replies
    4
    Views
    799

    different C++ rules book?

    Is there some book that doesn't teach C++ but only different C++ rules?
  4. Replies
    3
    Views
    1,718

    the purpose is just to add item to inventory ...

    the purpose is just to add item to inventory

    oh yeah, thanks for remaining, i was planning to write the code for that but i guess i forgot

    for( int iii=0; iii <= MAX_INV; iii++)
    if ( iii...
  5. Replies
    3
    Views
    1,718

    is this code is good?

    void AddItem(int A) //the arug' the amount you want to add
    {
    int B; //used to contain the subscribed amount
    ...
  6. Replies
    0
    Views
    1,534

    does it make any sense

    void AddItem(int A)
    {
    int B;
    amount += A;

    if( amount < stackSize )
    {
    B = amount - stackSize;
    GetItem(B)
    }
  7. Replies
    4
    Views
    915

    void AddItem(int A) { int B; ...

    void AddItem(int A)
    {
    int B;

    amount += A;

    if( amount < stackSize )
    {
    B = amount - stackSize;
  8. Replies
    4
    Views
    915

    Hehe, thanks.

    Hehe, thanks.
  9. Replies
    8
    Views
    2,121

    i don't get the static part

    i don't get the static part
  10. Replies
    4
    Views
    915

    isit ok using *this pointer

    void GetItem()
    {
    for (int iii=0; iii!=MAX_INV; iii++)
    if (charInv[iii].id==0){ charInv[iii] = *this); break;}
    else if (charInv[iii].id==id)
    if (amount < stackSize){ amount++;...
  11. Replies
    8
    Views
    2,121

    #include #include using...

    #include <string>
    #include <iostream>
    using std::string;
    using std::cout;
    using std::endl;

    #define MAX_ITEMS 100
    #define MAX_INV 30

    class Items
  12. Replies
    8
    Views
    2,121

    A.primDmg = B.primDmg; A.sconDmg =...

    A.primDmg = B.primDmg;
    A.sconDmg = B.sconDmg;
    A.resist = B.resist;
    A.bnsOpt = B.bnsOpt;


    well those r arrays, how can assign array to array?
  13. Replies
    8
    Views
    2,121

    is it ok like that?

    void copy(Items &A, Items B)
    {
    ID.A = ID.B;
    mainClass.A = mainClass.B;
    subClass.A = subClass.B;
    strReq.A = strReq.B;
    chkReq.A = chkReq.B;
    quality.A = quality.B;...
  14. Replies
    3
    Views
    750

    hmm, ok thanks

    hmm, ok thanks
  15. Replies
    3
    Views
    750

    cpying class objeects

    is there some special way to copy class object to another object of the same class? or am i forced to do operator overloading for that one?
  16. Thread: Is it good?

    by ExDHaos
    Replies
    15
    Views
    2,210

    well i think i will change it to 0 then (tho i...

    well i think i will change it to 0 then (tho i always loved the NULL keyword)

    hmm i guess ill use it then, it makes more sense, well thanks for the help, I really appreciate it.
  17. Thread: Is it good?

    by ExDHaos
    Replies
    15
    Views
    2,210

    well if it is the same as 0 its ok oh, then...

    well if it is the same as 0 its ok

    oh, then maybe its just some little typo i had

    the value is not user-input, its a fixed value, so theres no need to do the assert IMO

    the double value id...
  18. Thread: Is it good?

    by ExDHaos
    Replies
    15
    Views
    2,210

    well i did something like that in the past but i...

    well i did something like that in the past but i didn't like the fact that i had to use multiple functions for one object, and is it the only thing i should improve?
  19. Thread: Is it good?

    by ExDHaos
    Replies
    15
    Views
    2,210

    Is it good?

    #include <string>
    #include <vector>
    using std::string;
    using std::vector;
    using std::cout;
    using std::endl;

    #define MAX_ITEMS 100
    #define MAX_INV 30
  20. Replies
    4
    Views
    5,287

    Oh nevermind, it seems like I made some little...

    Oh nevermind, it seems like I made some little mistake when I tried to define everything outside the class, thanks alot for the help.
  21. Replies
    4
    Views
    5,287

    But I said, even when I declared them outside the...

    But I said, even when I declared them outside the constructor I had the same problem.
  22. Replies
    4
    Views
    5,287

    "undeclared identifier" error

    #include <string>
    #include <vector>
    using std::string;
    using std::vector;
    using std::cout;
    using std::endl;

    #define MAX_ITEMS 100
    #define MAX_INV 30
  23. Thread: problem

    by ExDHaos
    Replies
    12
    Views
    3,385

    Well I know that. But nevermind, I thought there...

    Well I know that. But nevermind, I thought there supposed to be a special way too initialize class vector objects.


    void LoadRaces()
    {
    vector<Races>racesDB;

    racesDB.push_back(Races(1,...
  24. Thread: problem

    by ExDHaos
    Replies
    12
    Views
    3,385

    }classesDB[MAX_CLASSES], *charClass; void...

    }classesDB[MAX_CLASSES], *charClass;

    void LoadClasses()
    {
    classesDB[0].classInfo(3, "Warrior", 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5);
    }

    I'm trying to do this but...
  25. Thread: problem

    by ExDHaos
    Replies
    12
    Views
    3,385

    no, like something i tried in the code

    no, like something i tried in the code
Results 1 to 25 of 84
Page 1 of 4 1 2 3 4