1,
TBuf<20> aa;
aa.Copy(_L("h hh hhh h h "));
TInt space_index = KErrNotFound;
while((space_index = aa.Locate(' ')) != KErrNotFound)
aa.Delete(space_index,1) ;
2,
TBuf<256> haha;
haha.Append(KKKK);
haha.TrimAll();
TInt k=0;
for(TInt i=0;i<haha.Length();i++)
{
if(TChar(haha[i])==TChar(' '))
{
k++;
haha[i]=haha[i+1];
i++;
}
}
haha.Delete(k+1,k);