号在函数 _main 中被引用
// text.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include "TStack.h"
#include "iostream"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
TStack <int> s1;
for(int i = 0; i < 5; i ++)
s1.push(i);
s1.display();
TStack<double> s2;
for(int i = 0; i < 5; i ++)
s2.push(i * 1.1);
s2.display();
char str[5][10]={"sdf","fdg","hdf","rey","hjf"};
TStack<char *> s3;
for(int i = 0; i < 5; i ++)
s3.push(str[i]);
s3.display();
system("pause");
return 0;
}
没有少,代码已经贴出来了,麻烦你看下是哪里错了,谢谢
追答看不出哪里有问题,可能问题在tstack.cpp上
本回答被提问者采纳没有少,代码已经贴出来了,麻烦你看下是哪里错了,谢谢
追答看不出哪里有问题,可能问题在tstack.cpp上
本回答被提问者采纳