首页 > 学院 > 开发设计 > 正文

Linux下C语言应用编程——GCC和GDB的使用

2019-11-08 02:43:37
字体:
来源:转载
供稿:网友

从控制台输入接受字符串,然后把输入参数打印出来

//hello.hextern void PRint(char* aa);#include <stdio.h>void print(char* aa){ printf("%s/n", aa);}#define N 10#include "hello.h"#include <stdio.h> void print(char* aa);int main(int argc, char **argv){ char aa[N]; scanf("%s",aa); print(aa);}

遇到的错误: 1、printf was not declared in this scope

#include<stdio.h>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表