Advertisement
Guest User

Untitled

a guest
May 9th, 2015
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. String^ s;
  2. String^ soc;
  3. int i, j;
  4. char oc;
  5. int n = richTextBox2->Lines->Length;
  6. for (i = 0; i < n; i++)
  7. {
  8. int ns = richTextBox2->Lines[i]->Length;
  9. s = richTextBox2->Lines[i];
  10. int k0 = s->IndexOf(" ");
  11. int k1 = s->IndexOf(" ", k0 + 1);
  12. int k2 = s->IndexOf(" ", k1 + 1);
  13. soc = s->Substring(k1 + 1, k2 - k1);
  14. if (soc == textBox1->Text)
  15. richTextBox1->Text = richTextBox2->Text + richTextBox2->Lines[i] + "\n";
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement