[c] error: ‘exit’ was not declared in this scope

error: ‘exit’ was not declared in this scope

it will be compiled without errors if you include in your code the statement:

#include <cstdlib>

error: ‘fork’ was not declared in this scope

it will be compiled without errors if you include in your code the statement:

#include <unistd.h>

留言

這個網誌中的熱門文章

a005: Eva 的回家作業