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...
Type: Posts; User: skatenjoi922
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...
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...
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
...
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...
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...
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...
i guess ill read up so more on function implication
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?
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...
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...
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!
yeah i already added the '%' operator earlier. Okay and ill start using break should it be at the end of each battle?
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...
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...
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...