it tells me i have unresolved externals
#include
#include
#include
#include
#include
char * vowel_rule(char *);
char * two_letter(char *);
char * last_rule(char *);
void rules();
int main()
{
rules();
return(0);
}
void rules()
{
char str[80];
char english[80];
int length,a,b,i;
i=0;
a=b=0;
printf("Please enter a phrase to be translated to piglatin: ");
fgets(str,79,stdin);
length = strlen(str);
printf("\nThis is your translated sentence: ");
while(a<=length)
{
english[b]=str[a];
if(english[b]==' '||english[b]=='\0')
{
english[b]='\0';
b=0;
if(english[0]=='A'||english[0]=='E'||english[0]=='I'||english[0]=='O'||english[0]=='U'||english[0]=='a'||english[0]=='e'
||english[0]=='i'||english[0]=='o'||english[0]=='u')
{
printf(" %s",vowel_rule(english));
}
char * vowel_rule(char *str)
}
static char temp[80];
strncopy(temp,'\0',80);
strcpy(temp,str);
temp[strlen(temp)+1]= '\0';
2007-12-10
14:29:15
·
6 answers
·
asked by
matt n
1
in
Computers & Internet
➔ Programming & Design
more specifically the error is....
1>Linking...
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
fatal error LNK1120: 1 unresolved externals
those are the two errors. If anyone owns microsoft visio for C, try copying and pasting the program to run it on your own. i've spent the last several hours trying to figure these errors out and any help would be appreciated. the purpose of this program is to convert english into pig latin. Thanks.
2007-12-10
15:04:42 ·
update #1
i cant even enter anything in it. it will not even pull up the printed screen.
2007-12-10
16:16:18 ·
update #2
no i cant see the output of the compiler
2007-12-10
16:17:17 ·
update #3