ylxd41 2016-05-09 03:00 采纳率: 0%
浏览 1205
已采纳

c语言小白请问错在哪?

#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;
}

  • 写回答

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;
    }
    

    建议楼主看一下基本语法

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(6条)

报告相同问题?