Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
void limpaQuadra(int npombo){
if(npombo > 0){
limpaQuadra(npombo -1);
}
printf ("Quantidade de pombos retirados : %d\n", npombo);
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package saxdefaulthandlerxml;
/**
*
* @author tuxcuiabano Retirado do Livro Texto "Tecnologia de Dados para
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package saxhandlerxml;
/**
*
* @author tuxcuiabano Retirado do Livro Texto "Tecnologia de Dados para
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package parsersax;
/**
*
* @author tuxcuiabano
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package manipulaxml;
/**
*
* @author tuxcuiabano Retirado do Livro Texto "Tecnologia de Dados para
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package carregaxml;
/**
*
* @author tuxcuiabano
@tuxcuiabano
tuxcuiabano / CriaXML.java
Created September 28, 2018 20:58
Exemplo de criação de arquivo XML com Java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package criaxml;
/**
*
* @author tuxcuiabano
@tuxcuiabano
tuxcuiabano / soma.c
Created June 21, 2018 17:28
Programa de exemplo de soma
#include <stdio.h>
int main()
{
int num1,num2,soma; //declaração de variáveis
printf("Digite o numero 1\n"); //printf para enviar mensagem na tela
scanf("%d", &num1); //scanf para associar o valor digitado à variável num1
@tuxcuiabano
tuxcuiabano / insertionSort.c
Created January 26, 2018 20:55
Implementação do Insertion Sort
#include <stdio.h>
void insertS(int *V, int N){
int z,i,j,aux;
for(i=1;i<N;i++){
aux= V[i];
for(j=i;(j>0) && (aux<V[j-1]);j--)
@tuxcuiabano
tuxcuiabano / prova2msib.c
Created November 1, 2016 03:41
Prova 2 MSI B
//
// main.c
// Prova
//
// Created by Pedro Clarindo da Silva Neto on 26/09/16.
// Copyright © 2016 Pedro Clarindo da Silva Neto. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>