void Printf(char*str...)
{
va_list list;
int intType;
char* charType;
float floatType;
char* curType = str;
va_start(list,str);
while( 0 != *curType)
{
switch(*curType)
{
case 'd':
intType = va_arg(list,int);
cout<<intType<<endl;
break;
case 'f':
floatType = va_arg(list,double);
cout<<floatType<<endl;
break;
}
curType++;
}
va_end(list);
}