Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

格式化相关检测 #81

Open
wujinting001 opened this issue Jan 9, 2023 · 1 comment
Open

格式化相关检测 #81

wujinting001 opened this issue Jan 9, 2023 · 1 comment

Comments

@wujinting001
Copy link

C++ 类似如下代码:

float persent = 10.0; print("persent = %f%\n", persent);
想输出 10.0% ,工具会报格式化参数个数不一致
这个有什么办法规避吗

@YangMoo
Copy link

YangMoo commented Mar 29, 2023

代码改成
print("persent = %f%%\n", persent);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants