All pastes #775196 Raw Edit

Stuff

public cpp v1 · immutable
·published 2007-11-15 14:50 UTC
rendered paste body
#include "lista.h"#include "sikidomok.h"#include <cstdlib>using namespace std;void Linked_List::add(SikidomBase *idom){    Node *temp;    temp=First;    while(temp->next!=NULL)    {        temp=temp->next;    }    temp->next=new Node(idom);}Linked_Lista::~Linked_List(){    Node *temp=First;    while(temp!=NULL)    {        Node *p=temp;        First=p->next;        delete p;    }}Hiba:lista.cpp:18: error: expected constructor, destructor, or type conversion before ‘::’ token