Search:

Type: Posts; User: stillwell

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: In Trouble

    by stillwell
    Replies
    3
    Views
    724

    Could you explain exactly what you are doing...

    Could you explain exactly what you are doing there. Still really unsure about pointers.
  2. Thread: In Trouble

    by stillwell
    Replies
    3
    Views
    724

    In Trouble

    I'm trying to create a small RPG and I'm having trouble figurig out how to attach an inventory to a being when it's being created.

    Please take a look at my code

    Being.h



    class Being
    {
  3. Replies
    11
    Views
    809

    Anyone? All help is much appreciated.

    Anyone? All help is much appreciated.
  4. Replies
    11
    Views
    809

    Ok, now I've devided my classes into a project...

    Ok, now I've devided my classes into a project with header files.

    Now I've run into a new problem :p

    This is how my code looks now.

    Hero.cpp
  5. Replies
    11
    Views
    809

    Thanks alot. Works now :) Any help is much...

    Thanks alot. Works now :)

    Any help is much appreciated.
  6. Replies
    11
    Views
    809

    I need more help. I'm having trouble with the...

    I need more help. I'm having trouble with the atk() function.




    class Hero
    {
    public:
    //Hero(){};
  7. Replies
    11
    Views
    809

    Thanks guys. I got my getHp function to work and...

    Thanks guys. I got my getHp function to work and decided to not set any values in the base class and just set values in the derived classes. Don't know if that's effecient?

    This is what my code...
  8. Replies
    11
    Views
    809

    Inheritance trouble

    I'm trying to learn about inheritance, and now I'm having trouble accesing iherited variables.



    #include <iostream>

    using namespace std;

    class Enemy
    {
  9. Replies
    14
    Views
    1,080

    hehe, I'm a noobie :P Works perfect now....

    hehe, I'm a noobie :P

    Works perfect now. Thanks for all your help guys.
  10. Replies
    14
    Views
    1,080

    Thanks to everyone who helped :D I have come upon...

    Thanks to everyone who helped :D I have come upon a new problem, though. It deletes the list of movies even if I don't choose 'y' when the option comes up.

    This is how my code looks now:


    ...
  11. Replies
    14
    Views
    1,080

    Thanks, the string input works now :D But I'm...

    Thanks, the string input works now :D

    But I'm having trouble fixing the menu thing. Got any tips for me?
  12. Replies
    14
    Views
    1,080

    OnionKnight, when I do that, the program simply...

    OnionKnight, when I do that, the program simply jumps the movie title input. I don't understand why, but it does.

    Indigo, could you tell me what other errors?
  13. Replies
    14
    Views
    1,080

    Trouble with string

    I've tried to make this small program that keeps track of my movie collection. However, I'm having trouble reading in movies with spaced names.




    #include <iostream>
    #include <fstream>...
  14. Replies
    3
    Views
    799

    psh, that's right. It's been a while :) Thanks...

    psh, that's right. It's been a while :)

    Thanks for the help
  15. Replies
    3
    Views
    799

    problems switching arrays

    Im trying to switch the values of 2 arrays, but the output is completely wrong.




    #include <iostream>

    using namespace std;

    void test(int a[], int b[], int antal)
  16. Replies
    6
    Views
    1,054

    Yay, now it works. Thanks for your help, MathFan...

    Yay, now it works. Thanks for your help, MathFan :D



    I know. The effect is wanted :)
  17. Replies
    6
    Views
    1,054

    1. That's my problem. I need to read in 2 numbers...

    1. That's my problem. I need to read in 2 numbers for every cycle from test.txt. Need to read in s and d.

    2. Ok, but how do I write it then? With a space, like this:


    1.11 55.55

    3....
  18. Replies
    6
    Views
    1,054

    need help with ifstream

    I have made a program that measures the speed of a shot on goal in soccer. I need it to read from a .txt file and write to another. My problem is that I need 2 simultanious readings from the file,...
  19. Replies
    13
    Views
    1,159

    Arg, this is killing me. I did as you said with...

    Arg, this is killing me. I did as you said with the simplestuff.h file, and the error went away...but was replaced by a new one :(

    C:\Documents and...
  20. Replies
    13
    Views
    1,159

    I just did that and I have the same problem....

    I just did that and I have the same problem. Which of the files should be linked in 'Resource directories', and which should be linked 'Included directories' ? Do I only need to link in of the...
  21. Replies
    13
    Views
    1,159

    Hmm, I added it to the project and pressed...

    Hmm, I added it to the project and pressed 'Rebuild all', but then it gives two error messages. Now it says: In file included from mine rescourser/simplestuff.cpp

    Is it because I have placed the...
  22. Replies
    13
    Views
    1,159

    I need some more help. I'm trying to make my...

    I need some more help.

    I'm trying to make my own header file, but I'm having some trouble. I have placed the .cpp file and the .h file in different directories, and have linked to those...
  23. Replies
    13
    Views
    1,159

    Yea, I see it clearly now. Thanks guys btw, is...

    Yea, I see it clearly now. Thanks guys

    btw, is it best to make the function void if it doesn't return a value, or deosn't it matter?
  24. Replies
    13
    Views
    1,159

    Need help with fuctions

    I'm trying to make a function that makes the number of endlines put into the integer, but it gives me these weird errors. What's wrong with my code?


    #include <cstdlib>
    #include <iostream>
    ...
  25. Replies
    12
    Views
    1,499

    int is a variable that can hold whole numbers...

    int is a variable that can hold whole numbers only. No decimals. I can't remember it's restrictions, but it's far more than 2 digits.

    int a = 1300086

    double w = 12.56

    valid variable...
Results 1 to 25 of 80
Page 1 of 4 1 2 3 4