I need help doing a very very simple hangman program...
Im very new to C, and im trying to do a hangman program, using stdlib, stdio and conio... and maybe string, but if you can without string it would be better... its supposed that i only have to use for and if, but if i cant it wouldnt matter... i just need a simple hangman program that have the following:
1 - abc
2 - random name
3 - the _ _ _ _ of the word
4 - that wen you introduce the letter, the letter on the abc will change(like the color)
5 - and, of course, the little man, the hangman boy...

this is what i have so far....
--------------------------------------------------------
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
#include<ctype.h>

char words[3][10]={"HEY","WHAT THE...","WWW.YAHOO.COM"};
char word[10], res[10];
char letter,opc,catego;

int i,j,y,elect,long,opor,a;


void main(void){

do{

i=j=y=elec=long=opor=a=0;
clrscr();
for(i=0;i<10;i++)
{
res[i]=NULL;
}

gotoxy(32,1);
printf("Hangman Game");

/*abc*/
for(i=0;i<26;i++)
{
gotoxy(i*2+18,4);
printf("%c",65+i);
}

randomize();
j = random(9);
long=strlen(word);

for (i=1;i<=long;i++){
gotoxy(15+i*4+14,20); printf("_");
}



do{
gotoxy(25,9);
printf("Write Word:");
do{
letter=toupper(getch());
}while(!isalpha(letter));

gotoxy(10+opor*3,22);
printf("%c",letter);

for(i=0;i<long;i++)
{
if(letter==word[i])
{
gotoxy(15+i*4+18,19);
printf("%c",letter);
res[i]=letter;
}
}
y=strcmp(word,res);

if(y==0){
gotoxy(32,33);
printf("YEAH!");
opor++;}
}while(opor<30 && y!=0);

if (opor==20)
{
gotoxy(26,30);
textcolor(3);
cprintf("WRONG: %s",word);
}
gotoxy(28,25);
printf("Play Again?");
do{
opc=toupper(getch());
}while(opc!='Y' && opc!='N');
}while(opc!='N');
}
---------------------------
please i really need help with this....