NSIS检测并统计字符串中某个字符个数
2012-11-05 18:01
1066 查看
!include "LogicLib.nsh" OutFile "检查找字符串中c出现的次数.exe" Name "test" Section "test" StrCpy $0 "cabcdccccc" StrLen $1 $0 StrCpy $2 '' loop: IntOp $1 $1 - 1 StrCmp $1 "-1" end StrCpy $3 $0 1 $1 ${if} $3 == c StrCpy $2 '$2$3' ${endif} goto loop end: StrLen $4 $2 MessageBox MB_OK 'c出现$4次!' SectionEnd
[/code]
相关文章推荐
- 找字符串中出现最对的字符,并统计个数,个人方案仅供参考
- c - 统计字符串"字母,空格,数字,其他字符"的个数和行数.
- java统计字符串中每个字符出现的次数
- 集合框架-统计字符串中每个字符出现的次数案例代码实现
- Java字符串、转义字符和字符统计
- 练习三:统计字符串中字符中 大写字符 小写字符 数字 其他字符 出现的次数
- 判断一个字符串中出现次数最多的字符,统计这个次数
- 统计字符串中,中文字符、英文字符和数字字符的数量
- 判断一个字符串出现次数最多的字符,统计该字符出现的次数
- 第十六周 项目二 用指针玩转字符串(统计字符长度)
- 【C语言】编写一个程序统计输入字符串中: 各个数字、空白字符、以及其他所有字符出现的次数。
- 统计字符串中连续数字字符组成的整数的个数
- 面试题 - 统计字符串中字符的个数
- python 统计字符串中的字符个数
- 统计字符串中每个字符出现的次数
- 统计字符串字符问题
- shell 统计字符串 字符个数
- 算法与数据结构面试题(19)-统计字符串中的字符个数
- 统计字符串中不同类型字符的个数
- 一个笔试面试经常问的问题——统计字符串中出现最多的字符及次数