出现PCH 警告:标头停止点不能位于宏或#if块中的报错
原程序
错误原因
vs2010的智能感知要求.h必须以非#if系列的预编译指令打头
修改方法
法一:#include “XXX.h”不放在开头
#ifndef STACK
#define STACK
template <class T>
--------------
#include <iostream>
#include "stack.h"
法二:在#ifndef前面加上#progama once
#progama once
#ifndef STACK
#define STACK
template <class T>
-------------
#include "stack.h"
#include <iostream>