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
#include <iostream> | |
#include <string> | |
int main() | |
{ | |
// confira, não sei se realmente esta certo | |
// Para ajudar, resolva o problema em partes e não como um todo, vai ficar menos dificil | |
// Leia 100 valores numéricos .. | |
int A[100]; // Variavel do tipo Int que vai armazenar ate 100 numeros(vetor começa por 0, então 99 armazena 100 números) | |
for (int i = 0; i < 100; i++) { |
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 | |
function conexaoPDO(){ | |
#Iniciando conexão com banco de dados | |
$pdo = new PDO ('pgsql:host=localhost; dbname=desenvolvedor' , 'postgres' , ''); | |
$pdo->setattribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
return $pdo; | |
} | |
function fatos(){ |
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 | |
function conexaoPDO(){ | |
#Iniciando conexão com banco de dados | |
$pdo = new PDO ('pgsql:host=localhost; dbname=desenvolvedor' , 'postgres' , ''); | |
$pdo->setattribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
return $pdo; | |
} |