我可以编译下一个代码吗?
main.CPP c ++语言文件
#include <stdio.h>
#include "file.h"
int main()
{
printf("Hello");
printf(func());
return 0;
}
Run Code Online (Sandbox Code Playgroud)
file.C c语言文件
#include "file.h"
char* func()
{
return "This is a C string";
}
Run Code Online (Sandbox Code Playgroud)
file.H
#ifndef FILE_H
#define FILE_H
char* func();
#endif // FILE_H
Run Code Online (Sandbox Code Playgroud) 我知道什么是专栏专业以及如何处理。质疑以这种方式实施系统的目的是什么?有技术或概念上的限制吗?