#include<stdio.h>
#include<string.h>
int main()
{
char text[100],*ptr;
scanf("%s",text);
ptr=strupr(text);
printf("%s",ptr);
return 0;
}
为什么在dev上可以,但在洛谷上不可以,显示编译失败。
显示这个
/tmp/compiler_gj25gr45/src: 在函数‘int main()’中:
/tmp/compiler_gj25gr45/src:7:6: 错误:‘strupr’ was not declared in this scope; did you mean ‘strstr’?
7 | ptr=strupr(text);
| ^~~~~~
| st