Search:

Type: Posts; User: skatenjoi922

Search: Search took 0.00 seconds.

  1. Making a function out of switch statement

    Is it plausible to make a function that has switch statements?
    this is the code I am working on. If so would it be possible to set the function to have a different value for my monster so that i...
  2. Replies
    19
    Views
    2,581

    sorry i'm so difficult, i need to read over my...

    sorry i'm so difficult, i need to read over my book more. Thanks again. I should've noticed the void wasn't needed when calling the function, and same with the char. I sometimes don't recognize the...
  3. Replies
    19
    Views
    2,581

    I'm sorry man but I just can't seem to get this...

    I'm sorry man but I just can't seem to get this to work. I've tried everything. I don't know how to run this program without main() but this is what i have, i've been going off your code

    ...
  4. Replies
    19
    Views
    2,581

    Thanks for all the help you have been giving me,...

    Thanks for all the help you have been giving me, I understand developing my own functions now. I was looking at the above code you posted and was trying to use it but for some reason i keep getting...
  5. Replies
    19
    Views
    2,581

    okay so pretty much in layman's terms, you are...

    okay so pretty much in layman's terms, you are just building a function at the bottom of your code and naming it ex. FunctionA so then everytime you need to use FunctionA you just use it like how you...
  6. Replies
    19
    Views
    2,581

    Thanks , i just finished my intro to computer...

    Thanks , i just finished my intro to computer science class today; we were using the book problem solving and program design. We never got to the structures section of this book but i'm going to...
  7. Replies
    19
    Views
    2,581

    i guess ill read up so more on function...

    i guess ill read up so more on function implication
  8. Replies
    19
    Views
    2,581

    lol yeah i'm still very knew to this thanks for...

    lol yeah i'm still very knew to this thanks for the comment, With more functions do you mean just so i can replace sets of code?
  9. Replies
    19
    Views
    2,581

    First Text based game.

    So this is my first text based game, I didn't bother completing it because i felt like my coding was very inefficient. Please give me some comments on what you all think and what i can do to simply...
  10. Replies
    1
    Views
    1,207

    Sound undeclared

    So I am trying to create sound in Dev C++ , I keep coming up with the problem stating that sound delay and nosound [link error] undefined reference, So i tried creating a project with the same code...
  11. Replies
    8
    Views
    967

    lol im having a hard time keeping up, ill try to...

    lol im having a hard time keeping up, ill try to learn from this but i think im going to temporarily stick with what i got going, ill post the code of what i make later. Thanks again for the help!
  12. Replies
    8
    Views
    967

    yeah i already added the '%' operator earlier....

    yeah i already added the '%' operator earlier. Okay and ill start using break should it be at the end of each battle?
  13. Replies
    8
    Views
    967

    Cool thanks! i'm pretty lousy with arrays! ha i...

    Cool thanks! i'm pretty lousy with arrays! ha i have my final for intro to computer science tomorrow and arrays are on it, i guess i should read up on it some before i take my final. Can i just set...
  14. Replies
    8
    Views
    967

    Thanks man that solved my problems, I just used a...

    Thanks man that solved my problems, I just used a % sign for setting the damage parameters. Is there a way where i can make this combat system its own function, ex. I can just call this function for...
  15. Replies
    8
    Views
    967

    Creating combat system

    So i'm fairly new with C and i was hoping if someone could help me with my problem. When using rand() i keep getting the same value and not truely random, also is there a way to set the number...
Results 1 to 15 of 15