小编Cor*_*sif的帖子

C函数和结构在运行中

我想知道是否有可能像在c ++中那样在函数调用中初始化struct:

struct point {
  int x;
  int y;
};

some_function(new point(x,y));
Run Code Online (Sandbox Code Playgroud)

谢谢 :)

c struct function on-the-fly

5
推荐指数
1
解决办法
1347
查看次数

标签 统计

c ×1

function ×1

on-the-fly ×1

struct ×1