following is my main program
Linklist is a class of circular Linked list
so my question is since the parameter of function doesn't contain Linklist in it
can I go ahead and call it "List" in any function, such as List.print(), anyway?
main()
{ linklist list;
int choice, num;
do
{ system("cls");
choice=menu();
switch(choice)
{ case 1: cout<<"Enter integer to insert:";
cin>>num;
list.insert(num); break;
case 2: list.print(); break;
case 3: cout<<"How many random integers?";
cin>>num;
list.fill(num); break;
case 4: { linklist copy(list);
cout<<"copy:";
copy.print();
} break;
case 5: cout<<"Enter the number to delete:";
cin>>num;
list.deletenode(num); break;
case 6: list.destroy(); break;
case 7: checkparameter(list); break;
case 9: break;
default: cout<<"Invalid choice\n";
cin.ignore(); cin.ignore();
}
} while(choice!=9);
}