#include"iostream"
#include"linklist.h"
using namespace std;
template<class T>
int main(){
void LinkList<T>::LinkList_3(){
T ch;
Node<T> *s,*r;
head=new Node<T>;
r=head;
cin>>ch;
while(ch!='$'){
s=new Node<T>;
s->data=ch;
r->next=s;
r=s;
cin>>ch;
}
r->next=0;
}};