void timten(char *a,char *b)
{
int n=strlen(a);
char *s;
for(int i=n-1;i>=0;i--)
if(a[i]==' '){s=a+i+1;break; }
if(strcmpi(s,b)==0)// strcmp==stricmp
cout<<s;
else
cout<<"ban nhap sai ten\n";
}
Monday, July 15, 2013
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment