#include
void pound(int n);
int main(void)
{
int times=5;
char ch='!';
pound(times);
pound(ch);
printf("the n is %d %d.\n",pound(times),pound(ch));
return 0;
}
c语言小白请问错在哪?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
7条回答 默认 最新
繁城落叶 2016-05-09 05:23关注#include <stdio.h> int pound(int n); char Pound(char c); int main(void) { int times=5; char ch='!'; pound(times); pound(ch); printf("the n is %d %c.\n",pound(times),pound(ch)); return 0; } int pound(int n) // 传入参数 { return n; //返回参数 } char Pound(char c) { return c; }建议楼主看一下基本语法
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报