

CodePudding user response:
You whether this is a warning or error,The meaning of warning, the last argument should be a char *, and you the incoming string is an immutable, a potential problem
To remove this warning, as follows:
Char filename []="counter. Dat";
Function inside the string, replace filename variable can get rid of the warning,
If is wrong, wrong prompt is given
CodePudding user response:
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.htmlI hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html