What are the requirements for the code? If the test requires different values of max then that code would allow the user to enter different values.
For testing I'd just hardcode an assignment...
Type: Posts; User: Norm
What are the requirements for the code? If the test requires different values of max then that code would allow the user to enter different values.
For testing I'd just hardcode an assignment...
What have you tried? Write a test program that does what you are asking about, compile and execute it.
If you have any error messages, copy the full text and paste it here.
Also post the code and...