Курсовая работа: Работа со списками
p->next=new list;
p->next->next=NULL;
p->inf=value;
p->name=name;
p=p->next;
}//end function
int count(){
int i=0;
p=top;
while (p->next!=NULL){
i++;
p=p->next;
}//end while
return(i);
}//end queue count
};//end queue class
//==========================================
//4. CLASS LINE
//==========================================
class Tline {
public:
point p1,p2;
TColor color;
bool secondary;
Tline(){color=0;secondary=0;}
~Tline(){}
void setline(point p1,point p2,long int col,bool sec);
point cut(float k);
};//end line class