void __fastcall TForm1::GetData(String S,String aa[5])
{
char temp[15],ch[70];
strcpy(ch,S.c_str());
int i,j,k;
for(j=0;j<15;j++)
{
temp[j]=' ';
}
for(i=0;(ch[i]!='\n')&&(ch[i]!='\0');i++)
{
if(ch[i]==' ') continue;
for(k=0;;k++)
{
for(j=0;(j<15)&&(temp[j]!=' ');j++)
{
temp[j]=' ';
}
for(j=0;(ch[i]!=' ')&&(ch[i]!='\n')&&(ch[i]!='\0');j++)
{
temp[j] = ch[i];
i++;
}
aa[k]=temp;
if(ch[i]==' ')
i++;
else return;
}
}
}
uj5u.com熱心網友回復:
這是一個演算法uj5u.com熱心網友回復:
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/120975.html
標籤:基礎類
上一篇:算符優先演算法
下一篇:vc++6.0
