int themenu();
int boygroups();
int girlgroups();
int solo();
int sub();
int main(void)
{
themenu();
return 0;
}
int themenu()
{
int pili,sagot,ans,kunin=0,yes,tuloy;
printf("\n\n\n\n\n\t\tTHIS MENU IS ALL ABOUT KPOP\n");
printf("\n\t\t\t\t1. Boy Groups\n");
printf("\t\t\t\t2. Girl Groups\n");
printf("\t\t\t\t3. Solo Performer\
printf("\t\t\t\t4. Sub-groups\n");
printf("\t\t\t\t5. I want to exit now\n");
printf("\n\t\t\tChoose the number you want: ");
scanf("%d",&pili);
switch (pili)
{
case 1:
printf("\n\n\n\t\t\t\t1. %s\n",unang[0].numberone);
printf("\t\t\t\t2. %s\n",unang[0].numbertwo);
printf("\t\t\t\t3. %s\n",unang[0].numberthree);
printf("\t\t\t\t4. %s\n",unang[0].numberfour);
break;
case 2:
printf("\n\n\n\t\t\t\t1. %s\n",unang[1].numberone);
printf("\t\t\t\t2. %s\n",unang[1].numbertwo);
printf("\t\t\t\t3. %s\n",unang[1].numberthree);
printf("\t\t\t\t4. %s\n",unang[1].numberfour);
break;
case 3:
printf("\n\n\n\t\t\t\t1. %s\n",unang[2].numberone);
printf("\t\t\t\t2. %s\n",unang[2].numbertwo);
printf("\t\t\t\t3. %s\n",unang[2].numberthree);
printf("\t\t\t\t4. %s\n",unang[2].numberfour);
break;
case 4:
printf("\n\n\n\t\t\t\t1. %s\n",unang[3].numberone);
printf("\t\t\t\t2. %s\n",unang[3].numbertwo);
printf("\t\t\t\t3. %s\n",unang[3].numberthree);
printf("\t\t\t\t4. %s\n",unang[3].numberfour);
break;
}
printf("\n\t\t\tChoose the number you want: ");
scanf("%d",&ans);
this is my code, when I tried to run it, the compiler will always say about Linker error thing, i tried removing the int before declaring functions but it will say the same error again, what do you think is my mistake here?
2) Your linker will be telling you exactly which symbols are undefined. I'm sure you have a good reason for deciding to withhold that information from us, but I'm struggling to work out what that reason might be.
3) I notice that your function declarations,e.g. :
As you could have found out from any textbook or tutorial - in less time than you've spent posting here - your declaration needs to show the types of the arguments to the function. If you're still getting errors after that, then there's another problem.