The code works, but after I run the exe file, no response.
I am trying to read a line, and count how many times does the leeter show up in the sentence.
1 2 3 4 5 6 7 8 9 10 11
for(int x = 0;x<range;x++) //range is 26, from a-z.
{
for(int i = 0; x << line.size();i++) // line is the sentence
{
if(eng[x]==line[i] || eng[x]-32 == line [i])
num_eng++;
}
if(num_eng > 0)
cout << eng[x] << num_eng << endl;
num_eng = 0;