Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
控制器* ctrl = (Controller*)malloc(sizeof(Controller));
尝试在文件的开头添加这个
#include <stdlib.h>