Posts
 
Reputation
Joined
Last Seen
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
1 Commented Post
0 Endorsements
Ranked #54.9K
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 2
java x 1
c x 1
Member Avatar for Husnain_6

Looks like l is never initialized. i.e. l = new linklist(n);

Member Avatar for Reverend Jim
0
143
Member Avatar for Thedoce

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 …

Member Avatar for chuckgr
0
2K
Member Avatar for Lacy_3

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. …

Member Avatar for chuckgr
0
697