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
<?php | |
$nomeBD = 'mural'; | |
$usuarioBD = 'root'; | |
$senhaBD = 'root'; | |
$pdo = new PDO("mysql:dbname={$nomeBD};host=localhost", $usuarioBD, $senhaBD); | |
$sql = "SELECT * FROM usuario WHERE nome='{$_POST['usuario']}' AND senha={$_POST['senha']}"; |
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
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
/** | |
* Representa uma Árvore B de ordem especificada. | |
* @author dbconrado | |
* @param <K> O tipo da chave (pode ser int, float, String etc.) | |
*/ | |
public class ArvoreB<K extends Comparable<K>> { |
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
import java.util.Scanner; | |
/** | |
* Implementação recursiva de uma lista genérica duplamente encadeada não-ordenada. | |
* | |
* @author dbconrado | |
*/ | |
public class Lista<K, V> { | |
K chave; | |
V valor; |