Guest_imported
New member
- Jan 1, 1970
- 0
I have done all the code and this compiles why doesn't it link properly i get lnk2001 eroor-unresolved external symbol.
Please Help!!!!!
#include <time.h>
#include "llist.h"
#include "xcept.h"
template<class T>
void main(void)
{
srand((unsig#include <iostream.h>
ned int) time(0)); // seed the random number generator
int Size = 50; // set the size of the linear list
LinearList<int> L(Size);
try {
int OldInt;
// make sure the list is empty
while (!L.IsEmpty())
L.Delete(1, OldInt);
// fill the list with random numbers
for(int I = 0; I < Size; I++)
L.Insert(I, (rand() % 900 + 100));
void BubbleSort (T a[], int n)
{
for (int I= n; I > 1; I--1)
Bubble(a, I);
}
cout << "List is " << endl;
cout << L << endl;
}
catch (...) {
cerr << "An exception has occurred" << endl;
}
// show the list
Please Help!!!!!
#include <time.h>
#include "llist.h"
#include "xcept.h"
template<class T>
void main(void)
{
srand((unsig#include <iostream.h>
ned int) time(0)); // seed the random number generator
int Size = 50; // set the size of the linear list
LinearList<int> L(Size);
try {
int OldInt;
// make sure the list is empty
while (!L.IsEmpty())
L.Delete(1, OldInt);
// fill the list with random numbers
for(int I = 0; I < Size; I++)
L.Insert(I, (rand() % 900 + 100));
void BubbleSort (T a[], int n)
{
for (int I= n; I > 1; I--1)
Bubble(a, I);
}
cout << "List is " << endl;
cout << L << endl;
}
catch (...) {
cerr << "An exception has occurred" << endl;
}
// show the list