User profile: Renthalkx97

User info
User name:Renthalkx97
Name:Jeremy Lyda
Location:Youngstown, Ohio
Statistical data
Number of posts:96
Latest posts:

Unusual activities for a programmer
So I was just curious as to if any people here do activities that you wouldn't suspect a person that...

How Do I Go About Generalizing These Functions, And Should I?
You could use inheritance and/or polymorphism.

rand() in loop
Take [code]srand(time(NULL))[/code] out of the loop. It only needs to be called once. Put it at the ...

Pass arguments to stuff? HOW IZ DO???
Do you mean how to write a function? If so: [code]return_type identifier(optional_arguments) { r...

Adding each unit they're current value and letting the user pick as many units as they want
You could just write a function to display the stats. I'm not really sure how else to go about it in...