Iv been trying for a while now to learn C++, but it seems and inpossible task. I have a few questions about the following code.
What is going on with hits suddenly having letters and crap inside it like r, and i? And whats all the dividing about (n / 10)? Or the last line of code return rand() % n; correct me if IM wrong, but than n is the functions n and not the data entered my me with cin>> correct? Anyway I fill like shooting myself trying to learn this programming language. IM in the fifth chapter of C++ without fear. The code is below.