method with temporary vectors doesn't take last element

Hello,
I've written a function which should for some class with Tekst_ vector in which there's lines of text. I want to separate text and elements different from letters. The problem is, somehow the new vector after going through the function, doesn't get the last word/character.
Here's the function:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
void Szyfr::podzial()
{
    vector<string> temp;
    for(int i=0; i<Tekst_.size(); i++)
    {
        string slo;
        for(int j=0; j<Tekst_[i].length();j++)
        {
        int nr = Tekst_[i].at(j);
        if(nr>64&&nr<91)
            {
                slo+=Tekst_[i].at(j);
            }
        else
            {
            string x;
            x+= Tekst_[i].at(j);
            temp.push_back(slo);
            temp.push_back(x);
            slo.clear();
            }
        }
        string nl;
        int s = 10;
        nl+=s;
        temp.push_back(nl);
    }
    Tekst_.clear();
    for(int i=0;i<temp.size(); i++)
    {
        Tekst_.push_back(temp.at(i));
    }
}

Can someone point my mistake?
You don't push slo onto temp if the last character seen is between 65 and 90.
Thanks a lot.
Topic archived. No new replies allowed.