Instantly share code, notes, and snippets.

View pombo.c
#include <stdio.h>
#include <stdlib.h>
void limpaQuadra(int npombo){
if(npombo > 0){
limpaQuadra(npombo -1);
}
printf ("Quantidade de pombos retirados : %d\n", npombo);
}
View SaxDefaultHandlerXM.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 saxdefaulthandlerxml;
/**
*
* @author tuxcuiabano Retirado do Livro Texto "Tecnologia de Dados para
View SAXHandlerXML.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 saxhandlerxml;
/**
*
* @author tuxcuiabano Retirado do Livro Texto "Tecnologia de Dados para
View ParserXML.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 parsersax;
/**
*
* @author tuxcuiabano
View ManipulaXML.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 manipulaxml;
/**
*
* @author tuxcuiabano Retirado do Livro Texto "Tecnologia de Dados para
View CarregaXML.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 carregaxml;
/**
*
* @author tuxcuiabano
View CriaXML.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
View soma.c
#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
View insertionSort.c
#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--)
View prova2msib.c
//
// 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>