小编Mou*_*use的帖子

编译纯C和C++

我可以编译下一个代码吗?

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)

c c++

3
推荐指数
1
解决办法
198
查看次数

为什么OpenGL使用列主矩阵顺序?

我知道什么是专栏专业以及如何处理。质疑以这种方式实施系统的目的是什么?有技术或概念上的限制吗?

opengl graphics

3
推荐指数
1
解决办法
530
查看次数

标签 统计

c ×1

c++ ×1

graphics ×1

opengl ×1