string break point problem

if you run this there is break point error

not sure why

[code]
string stringtmp;
string alp=" ABCDEFGHIJKLMNOPQRSTUVWXYNZ";
int count=1;
int k=0;
int result=0;

while(true){

cin >> stringtmp;
cout << stringtmp.size() <<endl;
while( stringtmp[k] != NULL) <-----------------break point error
if(stringtmp[k] == '#') return 0;
k++;
result = count * find(alp,stringtmp[k]);
}




cout << result <<endl;
/code]
What do you mean by "break point error" ?
A "break point" is a spot your debugger is instructed to stop your program at, so that you can look at your program's state. The term comes from IDEs where you can select a spot in your code and insert a break point.

Go to the line with the break point and remove the break point. Then compile and run as usual.
Topic archived. No new replies allowed.