Skip to content

Instantly share code, notes, and snippets.

View lesimoes's full-sized avatar
😎
bugging && debugging

Leandro Simões lesimoes

😎
bugging && debugging
View GitHub Profile
--Questão 01:
SELECT * FROM bolinha where id = 1;
--Q1
SELECT * FROM clients;
oia que coisa legal
Q1:
SELECT * FROM clients;
#include <stdio.h>
#define TAM 4
struct fila {
int inicio, fim, tamanho;
char elemento[TAM];
}Fila;
void iniciar (struct fila *F) {
printf("Iniciando a Fila");
#include <stdio.h>
#define TAM 10
struct lista {
int n;
char elemen[TAM];
}Lista;
void iniciaListaVazia(struct lista *L){ L->n = 0;}
@lesimoes
lesimoes / malloc.c
Created May 2, 2020 19:53
Sizeof and Malloc in C
#include <stdio.h>
int main(int argc, const char * argv[]) {
int tamanho;
printf("Digite um tamanho para o vetor: ");
scanf("%d", &tamanho);
//Aqui separamos um espaço em memório dinamicamente do tamanhao digitado pelo usuário
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://simples_wb" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://simples_wb" xmlns:intf="http://simples_wb" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://simples_wb" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="add">
<complexType>
<sequence>
<element name="a" type="xsd:int"/>
#include <iostream>
#include <cstdlib>
#include <math.h>
using namespace std;
int main()
{
int var, *pont; //Forma direta para declarar variáveis do mesmo tipo
var = 1000;
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define TAM 100
void gerarVetor(int *vetor){
for(int i = 0; i < TAM ; i ++)
vetor[i] = i + 1;
};
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define TAM 1000000
void gerarVetor(int *vetor){
for(int i = 0; i < TAM ; i ++)
vetor[i] = i + 1;
};