CString temp2,temp3;
CString Usertemp;
         UserNum=0;
int i,j=0;
i=str.Find("#");
while(i!=-1) //分析文件中数据
{

temp2=str.Left(i);

str=str.Right(str.GetLength()-i-1);

i=temp2.Find("@");
temp3=temp2.Left(i);
temp2=temp2.Right(temp2.GetLength()-i-1);
Pfrienddata[j].code=atoi(temp3);
           
                  i=temp2.Find("@");
temp3=temp2.Left(i);
temp2=temp2.Right(temp2.GetLength()-i-1);
Pfrienddata[j].id=atoi(temp3);

                  i=str.Find("#");
j++;
UserNum++;
}