07视频作业
main(){
char c=0;
while(1)
{
printf("Please inpue a num: ");
scanf("%d",&c);
printf("\n");
printf("Hex:%002xH Assii:%c \n",c,c);
printf("Do you keepon?('Y'or'N'):");
c=getch();
printf("%c\n",c);
if(c !='y')
break;
}
}
调试后能跑,感觉有些地方学的还不扎实,调试了很长时间才弄好.
页:
[1]