while (ichar < mystring.GetLength()) // delete "="
{
if (mystring.GetAt(ichar++)==mychar)
{k++;}
}
{
if (mystring.GetAt(ichar++)==mychar)
{k++;}
}
解决方案 »
- 使用GetThreadId()函数,运行时提示"不能在Kernel32.dll"里面找到,为何
- 如何确定工具栏上文字和图片的位置?
- VC 添加LVGROUP结构体时出错
- 调试时改变变量值从而改变执行次序?
- 这个帖子把我吓坏了!!
- 怎样获得进程所对应的程序在硬盘上的地址
- 请问如何将控件与数组对应?控件的成员变量不能是数组元素吗?
- 用SOCKET API在循环中发送较大的二进制文件,如何使发送端为非阻塞方式?
- 一个很严重的问题,我得不到ie里面的子窗口
- 如何获取并保存系统鼠标的形状?
- how to install different run.exe ()to taget machine with install shield
- 怎样在CTabCtrl中加入一个新控件
{
if (mystring.GetAt(ichar++)==mychar)
{
k++;
}
}The string is out of bound.You should writewhile(ichar < mystring.GetLength())
{
// ...
}