MFC简单编程问题 请帮忙举例说明MFC编程中对栈的简单应用 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 请就一个简单的例子可以吗,MFC下用到栈时需要声明一些东西吗? 不用吧。反正new是在堆中分配的 我遇到的具体问题如下,希望大家帮助看看#include "stdafx.h"#include "tigeryufa.h" #include "Finsert.h" #include "tigerleft.h" #include "tigeryufaDlg.h" #include<stack> using namespace std;#ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif .... .... .... void CFinsert::Ondaoru() { // TODO: Add your control notification handler code here stack<char> s; } error: C:\Documents and Settings\tiger85\桌面\tigeryufa\Finsert.cpp(337) : error C2065: 'stack' : undeclared identifier C:\Documents and Settings\tiger85\桌面\tigeryufa\Finsert.cpp(338) : error C2065: 'mystack' : undeclared identifier C:\Documents and Settings\tiger85\桌面\tigeryufa\Finsert.cpp(338) : error C2146: syntax error : missing ';' before identifier 'shed' C:\Documents and Settings\tiger85\桌面\tigeryufa\Finsert.cpp(338) : error C2065: 'shed' : undeclared identifier Error executing cl.exe. 请问MFC中用什么来开发曲线图和统计报表 会用VC编写工具的赶紧来拿分 请问 UpdateAllViews 后两个参数如何用 做一个SP需要哪些东西? 求救!!谢谢了先,关于数据类型的转换 调用DLL时出错,小毛病,来看看吧! VC中实现文字滚动要怎么弄啊? 请问如何编写rpc程序,哪里这样的文章或代码? 怎样编一个nt服务程序? 请问把析构函数声明为virtual或不声明为virtual有什么区别? 急求《Visual C++实践与提高——数字图像处理与工程应用篇 》一书的光盘源码!多谢多谢! 问个IE Band的问题?
反正new是在堆中分配的
#include "stdafx.h"
#include "tigeryufa.h"
#include "Finsert.h"
#include "tigerleft.h"
#include "tigeryufaDlg.h"
#include<stack>
using namespace std;
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
....
....
....
void CFinsert::Ondaoru()
{
// TODO: Add your control notification handler code here
stack<char> s;
}
error:
C:\Documents and Settings\tiger85\桌面\tigeryufa\Finsert.cpp(337) : error C2065: 'stack' : undeclared identifier
C:\Documents and Settings\tiger85\桌面\tigeryufa\Finsert.cpp(338) : error C2065: 'mystack' : undeclared identifier
C:\Documents and Settings\tiger85\桌面\tigeryufa\Finsert.cpp(338) : error C2146: syntax error : missing ';' before identifier 'shed'
C:\Documents and Settings\tiger85\桌面\tigeryufa\Finsert.cpp(338) : error C2065: 'shed' : undeclared identifier
Error executing cl.exe.