cstring::find cstring ll = "aaaaaaaaaaaaaaa";应该如何返回第n个a的位置?ll.find("a"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 第一个The zero-based index of the first character in this CString object that matches the requested substring or characters; -1 if the substring or character is not found. for(n) x=ll.find('a',x+1) 需要一点点小的编程,手头没有vc,不好写出来给点思路吧用find,找到一个,截短,继续find。。 楼主举的这个例子不典型,因为这个例子中,第n个a的位置,不就是在n-1的地方吗? fengqinggao(风清高) 哈哈,第n个a的位置:N-1 正确 两个网络函数的功能是什么呀 我感觉有点乱乱的逻辑,请大家帮我理理!!! VC6中怎么才能把编辑区中每一行代码的编号显示出来? 给分.:) 关于图像选中的显示问题 VC中如何用CToolTipCtrl类,实现对按钮的提示,求教例子 有关属性页的问题? 请问如何从进程ID获得该进程拥有的窗口的句柄 怎样让象棋程序具有一定的智能? _RecordsetPtr不能关闭? 哪里有支持asp的空间 COM的故障。请大家分析一下。 问个汇编的问题
The zero-based index of the first character in this CString object that matches the requested substring or characters; -1 if the substring or character is not found.
x=ll.find('a',x+1)
给点思路吧
用find,找到一个,截短,继续find。。