#include <stdio.h>
void pound (int n);
int main ()
{
int times =5;
char ch='!';
float f=6.5;
pound(times);
pound(ch);
pound(f);
return 0;
}
void pound (int n)
{
while (n-->0)
printf("#");
printf("\n");
}
pound(f);
参数要求int ,你传递一个float。你想得到什么样的结果呢?
什么不一样的结果?
你刚才评论的什么?好像被删了