I did this, but it gives me 2 erros:
Error 2 error LNK1120: 1 unresolved externals C:\Users\home\Desktop\Asst4\Debug\Asst4.exe 1 1 Asst4
Error 1 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup C:\Users\home\Desktop\Asst4\MSVCRTD.lib(crtexe.obj) Asst4
#include <iostream>
#pragma once
using namespace std;
template <class T>
int main ()
{
still triyng to test it, getting error. any ideas why?
#include <iostream>
using namespace std;
#include "StackADT.h"
int main (void)
{
int n =0;
StackADT stack;//error: aggrument list for class template is missing
if (!stack.isFull ())
stack.Push (2);
while (!stack.isEmpty ())
{
n= stack.Top ();
stack.Pop ();
cout << n << endl;
}
return 0;
}