All pastes #525923 Raw Edit

piromanas

public cpp v1 · immutable
#525923 ·published 2007-05-31 16:18 UTC
rendered paste body
void __fastcall TForm1::GenerateClick(TObject *Sender){        int size, count=0, pos, count1=0;        String str, zodis;        str = Edit1->Text ;        int loc = str.Pos(' ');        str.Delete(0,6) ;        size = zodis.Length() ;        TMemo->Text = str ;*/        int first = loc - 1;        std::stringstream ss;        ss << str.c_str() ;        while (ss >> zodis.c_str()) {            size = zodis.Length() ;            if (size == first){              count++;          }    }    TMemo->Text = String(count) ;}