早教吧作业答案频道 -->其他-->
字母加数字等于字母:如crypte('a',3)-->'a'+3='d'超过z的话重头来,我编译没错误,链接时出现Linking...LIBCD.lib(crt0.obj):errorLNK2001:unresolvedexternalsymbolmainDebug/x.exe:fatalerrorLNK1120:1unresolvedexternalsErr
题目详情
字母加数字等于字母:如crypte('a',3)-->'a'+3='d'超过z的话重头来,我编译没错误,链接时出现
Linking...
LIBCD.lib(crt0.obj) :error LNK2001:unresolved external symbol _main
Debug/x.exe :fatal error LNK1120:1 unresolved externals
Error executing link.exe.
#include
/* Question 4.1.Function crypte */
#include
char crypte(char c,int filtre)
{ char Cres;
if(isupper(c))
c=tolower(c); /* transformation in minuscule if majuscule*/
if ( (c>'a')&&(c'z')
Cres ='a'+ (Cres-'a') % 27;
}
else
Cres ='#'; /* caracter no alphabetical*/
return Cres;
}
void mian()
{char x;
int y;
printf("entrez a number:");
scanf("%c%d",&x,&y);
printf("Cres=%c",crypte(x,y));
}
Linking...
LIBCD.lib(crt0.obj) :error LNK2001:unresolved external symbol _main
Debug/x.exe :fatal error LNK1120:1 unresolved externals
Error executing link.exe.
#include
/* Question 4.1.Function crypte */
#include
char crypte(char c,int filtre)
{ char Cres;
if(isupper(c))
c=tolower(c); /* transformation in minuscule if majuscule*/
if ( (c>'a')&&(c'z')
Cres ='a'+ (Cres-'a') % 27;
}
else
Cres ='#'; /* caracter no alphabetical*/
return Cres;
}
void mian()
{char x;
int y;
printf("entrez a number:");
scanf("%c%d",&x,&y);
printf("Cres=%c",crypte(x,y));
}
▼优质解答
答案和解析
你的”main“函数拼写错误.你写成mian了
看了字母加数字等于字母:如cryp...的网友还看了以下: