VC中#ifdef和#pragma once的区别
摘要:
有两个头文件: a.h和b.h//a.h//a.h#ifndef _a_h#define _a_hvoid amsg();#endif//b.h//b.h#pragma once void bmsg();它们的源代码为:a.cpp#include <STDIO.H>#include "a.h"void amsg(){ printf("Call a.msg()\n");}b.cpp#include "b.h"#include <STDIO.H>void bmsg(){ printf("Call b.ms 阅读全文
posted @ 2011-12-30 11:56 天上星 阅读(695) 评论(0) 推荐(0) 编辑