![]() |
Hangman game source code
Hangman game source code for you.
============ Code: C
|
Re: Hangman game source code
Why No One Is Replying ?
|
Re: Hangman game source code
What you want in reply?
|
Re: Hangman game source code
i want to know wheter my program is good?
|
Re: Hangman game source code
Quote:
Not more people are replying or commenting probably because of lack of some explanation / introductory para. |
Re: Hangman game source code
hey iam getting an error
undefined symbol_main in module c).ASM |
9 Errors and 5 Warnings!! Whats this?!
Quote:
How come u n Shabbir r sayin that its workin .... in my Borland Compiler its showing 9 Errors & 5 Warnings :eek: .... some of the errors dont even require a compiler - they r glaring sytax errors .... or mebbe I am wrong - mebbe I am using the wrong compiler .... pls do clarify and elaborate in this regard. Thx. Ciao, Rajiv :) |
Re: Hangman game source code
What I meant good is from code point of view and I never compiled it.
Yup it has some syntax errors and here is the rectification Code:
#include<conio.h> |
3 Errors still remain!
There is still an error - the spacing between "ondtime" and "s". Rectify that and the code compiles without errors but with 4 warnings - all of "variable assigned a value but never used" .... But it does work in the way I think it should.
Ciao, Rajiv |
Re: Hangman game source code
The space problem is actually the problem in the algo of parsing the code and not with the actual code.
If you have a line greater than n it will insert a space in between. Normally that thing does not happen and in normal circumstances you dont have chars after chars without a space. |
Re: Hangman game source code
oh! didnt know that .... alright then, that settles it.
Ciao, Rajiv |
Re: Hangman game source code
Hello everyone, what is hangman? Sorry for my sutpidness.
Thanks for oyur explanations. |
Re: Hangman game source code
Hi I am doing a research project on a hangman program for C++ and i stumbled across this, I was wondering if someone could explain the different variables to me. I did not fully understand this. I am still in the entry levels of programming and I need to learn what variable does what for my class.
int score,loop,len,num,lup,om,luptimes,fitimes,ondtime s,antimes; thanks :) |
Re: Hangman game source code
Hello i am Knew to the forum and I am trying to write a hangman game for 2 players. I want to begin with a menu of 3 choices. New game, high scores and exit. If the player press the first, the game will start and ask for the “Word” .After that will scan the word. It will ask for how many wrong letters can the other player write. As a default will have 7. Every time it will ask for given word or letter. With an algorithm will compute the high scores.It Will store the names and the scores to a file if the player choose to see the high scores with the second option . Can anyone help me how to do that.
Thanks! |
Re: Hangman game source code
Quote:
But to learn proper style you need to study how good programs are written. Good style consists of such things as: * dividing a program up into subroutines (functions in C) * not using more variables than you absolutely have to * giving your variables informative names so readers don't have to figure out what they're for. * comments are also useful, especially for non-trivial things (don't just say what a simple line of code does in English, that's just for textbook examples). Also, some ascii graphics couldn't hurt! Code:
______ |
Re: Hangman game source code
you should explain some thing about your program.
you should use some comment to explain you program working. |
Re: Hangman game source code
Hi guys ,I have just done my C# hangman program.If somebody needs that send me an e-mail.Thanks Erolaktekin@hotmail.com
|
Re: Hangman game source code
Quote:
|
Re: Hangman game source code
where's a code?
|
Re: Hangman game source code
Quote:
|
Re: Hangman game source code
I will try to play it and will surely share the feedback.
|
Re: Hangman game source code
i really think that this is the most valuable site i have ever had. itx very easy to find the stuff of my interest. gota gona be the best progrmmer in the world. Inshallah. :)
|
Re: Hangman game source code
Hey, I'm getting error in spacing.....plz help
|
Re: Hangman game source code
Still worries
|
Re: Hangman game source code
Quote:
|
Re: Hangman game source code
hi im just a beginner and i tried the codes. the codes are working but i dont understand some part of it. can someone explain it to me i really need to understand the flow of this code. thank you very much
|
Re: Hangman game source code
Quote:
|
Re: Hangman game source code
Quote:
|
Re: Hangman game source code
Quote:
|
Re: Hangman game source code
Quote:
Code:
int score; |
Re: Hangman game source code
hello. this is my first post here. thank you for the code. now i understand how the game actually works. but i have a question. instead of typing the word to guess how can i use files r text files as source for the words to be guessed? im taking up programming as a minor subject in engineering and i really am finding it to be fun. i also have an assembly subject which is driving me nuts. so far i am finding C to be easier :D can anyone help me? thanks
|
Re: Hangman game source code
Quote:
|
| All times are GMT +5.5. The time now is 16:25. |