我是一个新手,刚接触c语言没多久,求大神指导
#include <stdio.h>int main ()
{
char str [80];
int i;
printf ("Enter your family name:Soulie\n");
scanf ("%79s",&str);
printf ("Enter your age:29\n");
scanf ("%d",&i);
printf ("Mr. %s , %d years old.\n",str,i);
printf ("Enter a hexadecimal number:ff\n");
scanf ("%x",&i);
printf ("You have entered %#x (%d).\n",i,i);
return 0;
}
我用这一段运算的结果就只有
求大神教教我