Ok I did the change, but it is still having problems, I eather get compilling errors (or if i edit it i dont get errors but the exe does nothing).
Code:
#include <stdio.h> //Basic funtions
#include <conio.h> //getch function
#include <ctype.h> //toupper function
#include <string.h> //strcmp function
int main(void)
{
int done;
char name[20], again;
done=0;
while(done)
{
printf("Enter your first name to get the meaning of it: ");
scanf("%s",&name);
name=toupper(name);
if(!strcmp(name, "KYLE"))
{
printf("\n\n\
Kyle (m,f): From a Scottish surname meaning \"narrow\"\n\
or \"narrow channel\" (Gaelic).");
break;
}
if(!strcmp(name, "ASHLEY"))
{
printf("\n\n\
ASHLEY (m,f): From a surname which was originally derived from\n\
a place name which meant \"ash tree clearing\" (Old English).");
break;
}
if(!strcmp(name, "DEBORAH"))
{
printf("\n\n\
DEBORAH (f): \"bee\" from the Hebrew name Devorah.\n\
Deborah was the nurse of Rebecca in the Old Testament.\n\
Also in the Old Testament, this was the name of a heroine\n\
and prophetess who led the Israelites in defeating the Canaanites.");
break;
}
if(!strcmp(name, "DANNY"))
{
printf("\n\n\
DANNY (m): Pet form of DANIEL\n\
DANIEL (m): \"God is my judge\" from the Hebrew name Daniyel.\n\
Daniel was a Hebrew prophet whose story is told in the Book of Daniel\n\
in the Old Testament. He lived during the Jewish captivity in Babylon,\n\
where he served in the court of the king, rising to prominence by\n\
interpreting the king's dreams. The book also presents Daniel's four\n\
visions of the end of the world. Famous bearers of this name include\n\
English author Daniel Defoe, Swiss mathematician Daniel Bernoulli,\n\
and American frontiersman Daniel Boone.");
break;
}
if(!strcmp(name, "LAURIE"))
{
printf("\n\n\
LAURIE (f): Pet form of LAURA\n\
LAURA (f): Feminine form of the Late Latin name Laurus,\n\
which meant \"laurel\". In ancient Rome the leaves of laurel\n\
trees were used to create victors' garlands. Saint Laura was\n\
a 9th-century Spanish martyr, a nun who was thrown into a vat\n\
of molten lead by the Moors. Another famous bearer was Laura Secord,\n\
a Canadian heroine during the War of 1812.");
break;
}
if(!strcmp(name, "STEPHEN"))
{
printf("\n\n\
STEPHEN (m): \"crown\" from Greek stephanos. Saint Stephen\n\
was an early Christian martyr stoned to death as told in Acts\n\
in the New Testament. Another Saint Stephen is the patron saint\n\
of Hungary, was the first Christian king of that country (10th century).\n\
As well, this was the name of kings of England, Serbia, and Poland\n\
and ten popes. This name is also borne by physicist Stephen Hawking.");
break;
}
if(!strcmp(name, "SARAH"))
{
printf("\n\n\
SARA (f): Arabic, Greek, Spanish, Italian and Hungarian form of SARAH\n\
SARAH (f): \"lady\" or \"princess\" (Hebrew). This was the name of the\n\
wife of Abraham in the Old Testament. She became the mother of Isaac\n\
at the age of 90. Her name was originally Sarai, but God changed it\n\
(see Genesis 17:15).");
break;
}
while(1)
{
printf("Want to see that again? Y/N: ");
again=toupper(getch());
if(again=='Y')
break;
else if(again=='N')
{
done=1;
break;
}
else
{
printf("Hit [Y]es or [N]o");
}
}//end while(1)
}//end while(done)
return 0;
}//end main(void)