Demo entry 4089217

A

   

Submitted by anonymous on Mar 18, 2016 at 12:49
Language: C++. Code size: 282 Bytes.

void ListeInt::hinten_anfuegen(int data) {
	TListenKnotenInt *neuer_eintrag = new TListenKnotenInt(data);
	if (anker == nullptr) anker = neuer_eintrag;
	else {
		TListenKnotenInt *ptr = anker;
		while (ptr->next != nullptr) ptr = ptr->next;
		ptr->next = neuer_eintrag;
	}
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).