Advertisement
r4lovets

Untitled

Jan 8th, 2019
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.26 KB | None | 0 0
  1. function SearchingWord(S: string; var j: Integer): String;
  2.  
  3. var
  4.   Word: string;
  5.   k, m: Integer;
  6.  
  7. begin
  8.   m := j;
  9.   while S[j] <> ' ' do
  10.     Inc(j);
  11.  
  12.   Word := '';
  13.   for k := m to j - 1 do
  14.     Word := Word + S[k];
  15.  
  16.   SearchingWord := Word;
  17.  
  18. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement