Переделать код с pascal на c++ uses strutils; var a : string; b: string[100]; i, j, c, k: integer; t: array of string; begin readln(a); readln(b); setlength(t, length(b)); for i: = 1 to length(b) do begin b : = copy(b, 2, length(b)) + b[1]; j: = k - 1; while (j > = 0) and (t[j]< > b) do dec(j); if j < 0 then begin t[k]: = b; inc(k); j: = posex(b, a, 1); while j > 0 do begin inc(c); j: = posex(b, a, 1 + j); end; end; end; writeln(c); end.