Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
C++
UnsortedType<int> intList;


it showes me error in this line

What I have tried:

C++
int main()
{
  // Integer List Test
  cout << endl << "INTEGER LIST TEST" << endl;

  // Create list of integers
  UnsortedType<int> intList;

  // Insert four items 5 7 6 9
  intList.InsertItem(5);
  intList.InsertItem(7);
  intList.InsertItem(6);
  intList.InsertItem(9);
Posted
Updated 13-Aug-20 10:02am
v3
Comments
Sandeep Mewara 13-Aug-20 16:32pm    
You need to share entire code. Currently, seems you have errors but not in the code shared here.
Dave Kreskowiak 13-Aug-20 19:25pm    
So you decided to keep the errors a secret? How do you expect anyone to help if you do that?

1 solution

I would guess the compiler doesn't know what the UnsortType template is. One can only guess when this is the only code we can see.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900