不同cpp文件中的C++的函数调用

img

声明的函数为啥是灰色的 不能被调用 上面#pragma once这中方法我不用,我想知道#ifdef这种方法实现

#ifndef,注意是if-n-def