C++
雨在下_刘宇
静思笃行,持中秉正。勤奋求实,励志明德。
展开
-
ifndef define endif 使用
文件main.c中:include “test1.h”include “test2.h”文件test2.h中:include “test1.h”在test1.h中:ifndef TEST1__Hdefine TEST1__Hendif在main.c中第一次调用test1时,发现未定义就执行#ifndef - #endif之间的代码,之后调用test2时就不再定义test1了。 如果test1中有定原创 2016-10-30 22:22:56 · 362 阅读 · 0 评论 -
C++语言学习
C++ Reference:https://en.cppreference.com/w/原创 2018-12-21 17:04:59 · 125 阅读 · 1 评论