Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiulan--Homework--HangPerson #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Xiulanshi
Copy link

No description provided.

int correctNum = 0;
int oldCorrect = 0;
//the longest word has 7 letters, so use 8 here...
int letterGuessed[8] = { 0,0,0,0,0,0,0,0 };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could make this more general.

int letterGuessed[lengthOfWord];
for (int i = 0; i < lengthOfWord; i++) {
    letterGuessed[i] = 0;
}

@mikekavouras
Copy link
Contributor

Great work!

@Xiulanshi
Copy link
Author

Thank you very much, Mike. I will try to make it more general. Great advice!

Thanks a lot,
Xiulan

On Mon, Jun 22, 2015 at 11:38 AM, Mike Kavouras [email protected]
wrote:

Great work!


Reply to this email directly or view it on GitHub
#17 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants