Ok, I think I've posted this in the wrong place, but I couldn't find anywhere better, and I saw the C/C++ tutorial here too... if anyone feels this should be moved, ask a mod, just don't flame me...
Anyway, I just want to know a couple of things, I have searched on Google, but not found anything helpful, and I would search here, but my dialup connection hates this forum...
How do I use the logic function OR? What header files do I need? Also, can someone give me some sort of idea as how to add it to my code.
I know thatworks, so I tried switching toCode:while((sgx==230) && (sgy==20))but I got an error, I've delved into header files and so on, but can't find what I'm meant to do.Code:while((sgx==230) OR (sgy==20))
The other question, how do I pass a totally random number? I've thought about using time, but I can't limit this to a range... I have on the other hand thought about dividing it and finding the remainder to limit... so I guess my question is, how do I limit srand, or how do I return a remainder of an equation? (The latter is probably more helpful as it has other applications).
Thanks for your time.