forked from icei-pucminas/aeds2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
607 additions
and
628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,4 @@ public static void main (String [] args) { | |
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 17 additions & 18 deletions
35
fonte/u06 Estruturas de dados básicas flexíveis/java/coletalixo/ColetaLixo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
|
||
|
||
class ColetaLixo { | ||
private Celula primeiro; | ||
|
||
public ColetaLixo () { | ||
primeiro = new Celula(); | ||
} | ||
|
||
public void inserir(int x) { | ||
primeiro.prox = new Celula(x); | ||
primeiro = primeiro.prox; | ||
} | ||
|
||
public static void main (String [] args) { | ||
ColetaLixo coletaLixo = new ColetaLixo (); | ||
|
||
while(true){ | ||
coletaLixo.inserir(0); | ||
} | ||
} | ||
private Celula primeiro; | ||
|
||
public ColetaLixo () { | ||
primeiro = new Celula(); | ||
} | ||
|
||
public void inserir(int x) { | ||
primeiro.prox = new Celula(x); | ||
primeiro = primeiro.prox; | ||
} | ||
|
||
public static void main (String [] args) { | ||
ColetaLixo coletaLixo = new ColetaLixo (); | ||
while(true){ | ||
coletaLixo.inserir(0); | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,3 +198,6 @@ void maiorEsq(No** i, No** j) { | |
free(del); | ||
} | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
all: exec | ||
|
||
exec: principal.o arvorebinaria.o no.o | ||
gcc -o exec principal.o arvorebinaria.o no.o | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,5 @@ int main(){ | |
caminharPre(); | ||
caminharPos(); | ||
|
||
|
||
return 1; | ||
} |
Oops, something went wrong.