for int 100 for int 100 if strar input strar while input find string n

 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
for (int x=0;x<100;x++)
for(int y=0;y<100;y++)
{
if (strar[x][y]!="")
{
input=strar[x][y];
while(input.find('[')!=string::npos)
{
int pos1=input.find('[');
int pos2=input.find(']');
str=input.substr(pos1,pos2);
sscanf(str.c_str(),"[%d,%d]", &i, &j);
value= "("+strar[i][j]+")";
input.replace(pos1,pos2+1,value);
count++;
if (count==100)
{
ShowMessage("Çàöèêëþâàííÿ!");
break;
}
}
StringGrid1->Cells[x][y]= IntToStr(calc(input).decimal);
}
}