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
/** | |
* Função para imprimir um array de 2 dimensões e de inteiros | |
* @param matriz A matriz à ser imprimida | |
* @param x tamanho de colunas da matriz | |
* @param y tamanho de linhas da matriz | |
*/ | |
void imprime_matriz_int(int matriz[][4], int x, int y) { | |
int i, j; | |
// itera sobre as colunas da matriz |
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
diff --git a/src/Princ.dfm b/src/Princ.dfm | |
index 4247af1..aba7eae 100755 | |
--- a/src/Princ.dfm | |
+++ b/src/Princ.dfm | |
@@ -25,4 +25,28 @@ object FmPrinc: TFmPrinc | |
TabOrder = 0 | |
OnClick = CbAlertaClick | |
end | |
+ object EdChange: TEdit | |
+ Left = 135 |
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
/** | |
* TESTE | |
* @param p1 Parâmetro 1 | |
* @param p2 Parâmetro 2 | |
* @return Retorno | |
*/ | |
int funcao(int p1, int p2) { | |
return 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
.data 0x10000000 | |
.globl v | |
v: | |
.word 2,5,3,7,1,9,4,6,10,8 # Array com dados | |
.text # Diz que é a seção de código do arquivo | |
.globl main # Aponta para o início do programa |
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
Olá, professora | |
Segue a resolução do trabalho: | |
2) a) Ordena o vetor em v | |
b) É voltar para aonde o procedimento foi chamado, para poder dar continuidade ao programa neste local | |
3) |
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
/** | |
* Gera o ponto de divisão da partição | |
* @param p inicio do array | |
* @param r final do array | |
* @return ponto de divisão da partição | |
*/ | |
int partition(p, r) { | |
int piv = array[p], i = (p - 1), j = (r + 1), temp = 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
function doSomeStuff(cb) { | |
// Some Stuff | |
return cb(); | |
} | |
doSomeStuff(function onSomeStuffHandler() { |
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
function TFmPrinc.validaCartaoCredito(cn: String): ShortInt; | |
var | |
i, j, Sum : Integer; | |
begin | |
if (Length(cn) > 20) OR (Length(cn) < 15) then | |
Result := -1 | |
else | |
try | |
Sum := 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
#!/bin/bash | |
# @Author: Reinaldo Antonio Camargo Rauch <reinaldorauch@gmail.com> | |
# @Date: 2014-08-26 13:02:39 | |
# @Last Modified by: Reinaldo Antonio Camargo Rauch | |
# @Last Modified time: 2014-08-26 14:32:59 | |
# | |
# Script para extrair e renomear as pastas de arquivos baixados do nipponsei | |
# |
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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define TAM 10 | |
int array[TAM]; | |
/** |
OlderNewer