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

46号Find_Chinese #34

Open
ljdong-fy opened this issue Nov 25, 2021 · 1 comment
Open

46号Find_Chinese #34

ljdong-fy opened this issue Nov 25, 2021 · 1 comment

Comments

@ljdong-fy
Copy link

      if (printStr.Contains("//"))  //说明是注释
                continue;

上面那个语句有个疑问,如果是这种情况,是否就查找不出来了:

m_label.text = "永远的神";// 标题

@Kaorixsol
Copy link
Collaborator

      if (printStr.Contains("//"))  //说明是注释
                continue;

上面那个语句有个疑问,如果是这种情况,是否就查找不出来了:

m_label.text = "永远的神";// 标题

如果是代码和注释在同一行,示例中的写法确实不会统计到。更精细的统计,可以改改代码。

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