ylxd41 2016-05-09 03:00 采纳率: 50%
浏览 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条)

报告相同问题?

悬赏问题

  • ¥15 用三极管设计—个共射极放大电路
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示