#include <stdio.h>
int multiple(int, int);
int main()
{
int i;
int x;
int y;
scanf("%d %d", &x, &y);
printf("%d", multiple(x,y));
}
int multiple(int N,int M)
{
i
struct move {
int left;
int right;
int up;
int down;
};
struct move moves[CONFIG_VARIABLE_X];
移动数量数组是一个配置变量,它可以由开发人员设置为任何值。 现在,所有的动作[x] .right本身应该值1。 我知道我可以编写一个函数并循环并使用1初始化正确的成员,但是有什么方法可以初始化上
我有两个头文件 A.h struct A { ... };
function declarations which use A
B.h function declarations which use the struct A here, and have functions which also use A.
However, I want to call "A" B here. How