thanx!
I already tried #include <algorithm> but z=k.count(ik) still doesnt work... (z=int, k,ik=string)
Still produces the error: `count' undeclared.
Now I just use this code to count the stuff myself:
Code:
z=ik.find(k);o=0;
while (z!=-1) {z=ik.find(k,z+k.size());o++;}
then the int o has the number of occurences... a bit more complicated, but it works...