Thread Funktionen zusammenfassen? (23 answers)
Opened by der_thomas at 2014-01-19 12:34

Gast wer
 2014-01-21 16:19
#173095 #173095
Objektorientiert:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Frontend.pl					      Modul.pm
*************************** *********************************************
* I/O z.B. per Konsole * * Array Objekt variable *
* * * zeiger Objektvariable *
*-------------------------* *-------------------------------------------*
* * * *
* $obj = lade Datei xy --------Modul->load txt(xy)----> * $self=bless("Modul",{}) *
* ^ * * $self->{Array} = lade Datei xy *
* | * * $self->{zeiger} = 0 *
* \--<--------------------------($self)-----------------/ *
* * * *
* * * *
* * * *
* $obj->get first (record) --------------get first----> * temp = $self->{Array}[$self->{zeiger}]--\ *
* print temp * <-------(temp)--------------------------------------------------------/ *
* * * *
* * * *
* * * *
* temp = 4; $obj->put temp --------------put(temp)----> * Array[$self->{zeiger}] = temp *
* * * # Array[0] = 4 *
* * * *
* * * *
* $obj->get next ----------------------get next-----> * $self->{zeiger} ++ *
* * * temp = $self->{Array}[$self->{zeiger}]--\ *
* print temp * <-------(temp)--------------------------------------------------------/ *
* * * *
*************************** *********************************************

Last edited: 2014-01-21 16:40:35 +0100 (CET)

View full thread Funktionen zusammenfassen?