C語言修煉日記——extern

在main.c中假設定義了下面一個函數:函數

#include "common.h"test

extern void test();cpu

 

在頭文件common.h文件

extern void test();co

 

就會形成cpu佔用率太高問題,必須去掉externvoid

相關文章
相關標籤/搜索