How to solve the problem – incompatible implicit declaration of built-in function ‘malloc’? I have the sample detail: fileinfo_list* tempList = malloc(sizeof(fileinfo_list)); typedef struct { fileinfo** filedata; size_t nFiles; size_t size; ...
Home/struct
ITtutoria Latest Questions
Lyra Wang
Asked: May 18, 2022In: cpp
I get the “expected unqualified-id before ‘{‘ token” error as the title says. How can I fix it so the error goes away? Here is my detail: #ifndef RATIONAL_H #define RATIONAL_H using namespace std; struct ...