16 Reputation Points
Ranked #1K
- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 3
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #55.0K
| |
Re: There were several errors in your code and it would not compile. Once I got through that it was easy to add counters to the code and pass these to the functions to calculate the score. Here is a working example: #include <iostream> #include <math.h> #include <string> int numGen(); int … | |
Re: Seems one way to tackle this would be to loop through the arrays and check to see if the entered code matches any of the characters in the secret code. If so check to see if it's in the correct location, otherwise you print a character that inficates a miss. … |