向工程中添加1.h和1.cpp,为什么提示找不到??
1、向工程中添加1.h和1.cpp,然后再主程序中#include "1.h",为什么提示
cant open 1.h file?而我把1.h和1.cpp复制到application目录下,就可以,
除了复制还有什么方法?
2、#include "StdAfx.h"
#include "TStack01.h"
#include "iostream.h"
void main(void)
{
stack<float> floatstack(5);
float f=1.01;
cout<<"pushing elements onto floatstack\n";
while (floatstack.push(f)) {
cout<<f<<'\n';
f+=1;
}
// return 0;
}最后有错误:fatal error C1075: end of file found before the left brace '{' at 'g:\程序\c++\c++ design tutorial\3.10\stack\tstack01.h(6)' was matched,不明白什么意思?〉