RE
查看原帖
RE
1073139
jmj20130514x楼主2024/11/27 16:47

代码:

#include <iostream>
#include <cstring>
using namespace std;
//TODO
//TODO
//TODO
int main(void)
{
	
	char s;
	cin>>s;
	cout<<strupr(s)<<endl;
	
	return 0;
}

ERROR:

/tmp/compiler_398nc81h/src: 在函数‘int main()’中:
/tmp/compiler_398nc81h/src:12:8: 错误:‘strupr’ was not declared in this scope; did you mean ‘strstr’?
   12 |  cout<<strupr(s)<<endl;
      |        ^~~~~~
      |        strstr
2024/11/27 16:47
加载中...