C++ Program

Hello, I'm new into coding and I just have a question about coding. In my class we had to create a random walking program where a person goes from a position to the right end or left end. I just wanted to know what would a random code like this be used in work? Thank you.
Last edited on
What exactly do you need help on? I am happy to help answer questions, but I can't tell you what your teacher is expecting.
OP: this example is straight out of C++ Primer (5th ed) by Stephen Prata, Chapter 11, sub-section 'Taking the vector class on a random walk'
Topic archived. No new replies allowed.