![]() |
#2
apull2025-06-15 10:56
|
#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
typedef struct
{
int a;
unsigned char b;
char c;
}Mystruct;
int main(int argc, char *argv[])
{
unsigned int Address;
Address = offsetof(Mystruct, b);
}
为什么会报 error: syntax error before ')' token 这个错误,一直都没有找到原因......