C语言isalpha
#include<ctype.h>#include<stdio.h>voidmain(){charch;while((ch=getcher())!='\n'){if(is...
#include<ctype.h>
#include<stdio.h>
void main()
{
char ch;
while((ch = getcher()) != '\n')
{
if(isalpha(ch))
putchar(ch+32);
else
putchar(ch);
}
putchar('ch');
}
Compiling...
scanf.c
F:\MyProjects\Note\scanf.c(133) : warning C4013: 'getcher' undefined; assuming extern returning int
scanf.obj - 0 error(s), 0 warning(s)
Linking...
scanf.obj : error LNK2001: unresolved external symbol _getcher
Debug/Note.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
Note.exe - 1 error(s), 0 warning(s) 展开
#include<stdio.h>
void main()
{
char ch;
while((ch = getcher()) != '\n')
{
if(isalpha(ch))
putchar(ch+32);
else
putchar(ch);
}
putchar('ch');
}
Compiling...
scanf.c
F:\MyProjects\Note\scanf.c(133) : warning C4013: 'getcher' undefined; assuming extern returning int
scanf.obj - 0 error(s), 0 warning(s)
Linking...
scanf.obj : error LNK2001: unresolved external symbol _getcher
Debug/Note.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
Note.exe - 1 error(s), 0 warning(s) 展开
名片
2024-10-28 广告
2024-10-28 广告
作为优菁科技(上海)有限公司的一员,Altair HyperWorks是我们重点代理的CAE软件套件。该软件以其全面的仿真能力、丰富的建模工具和高效的优化设计功能著称,广泛应用于汽车、航空航天、能源及电子等行业。HyperWorks通过集成...
点击进入详情页
本回答由名片提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询