Skip to content

Instantly share code, notes, and snippets.

View Crepu's full-sized avatar
🇵🇸
stop the genocide!

Daniel Méndez Crepu

🇵🇸
stop the genocide!
View GitHub Profile
#vectores de caracteristicas
datos=[[1,1,1],
[1,1,1],
[1,1,1],
[1,1,0],
[1,0,0],
[1,0,0]]
etiquetas=[1,1,1,-1,-1,-1]
#include <iostream>
using namespace std;
float f(float x){
return x*x;
}
float g(float c, float v, float b ){
@Crepu
Crepu / cartones.cpp
Created May 25, 2017 03:31
Ejercicio de arreglos de programación
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int numeros[10] = {0};
int x[27]= {3,5,5,4,5,1,1,5,3,5,9,6,7,2,
9,4,2,0,5,4,7,1,6,7,9,0,2,};
for (int i = 0; i < 27; ++i)
4.5 3.5 5.5 3.4 4.5 5.2 7.0 6.0 7.0 4.5
6.6 3.3 6.5 4.6 6.4 5.2 5.0 4.0 6.0 6.3
4.2 2.8 6.5 6.6 4.4 4.2 7.0 5.0 5.0 4.7
5.9 6.7 2.5 5.4 6.5 5.2 5.0 6.0 7.0 3.6
3.4 6.6 3.5 3.2 2.5 4.2 5.0 5.0 6.0 5.5
1.0 3.2 5.5 4.8 1.5 5.2 5.0 6.0 7.0 6.4
6.2 2.4 5.5 6.4 7.0 3.2 5.0 4.0 3.0 3.2
4.5 5.5 5.6 4.5 3.6 5.2 6.0 3.0 7.0 3.5
6.1 1.3 6.8 2.3 4.7 5.2 2.0 3.0 5.0 5.6
5.9 3.5 3.5 3.6 1.2 5.2 6.0 6.0 4.0 2.1
#include <iostream>
#include <fstream>
#include <string>
#include <typeinfo>
using namespace std;
int main(){
ifstream entrada("numeros");
class Nodo{
int data;
Nodo *izq;
Nodo *der;
};
class abb{
Nodo *raiz;
abb(){
@Crepu
Crepu / stack.go
Last active August 29, 2015 14:28 — forked from bemasher/stack.go
A simple LIFO stack backed by a linked list implemented with golang.
package main
import (
"fmt"
)
type Stack struct {
top *Element
size int
}
@Crepu
Crepu / lista.h
Last active August 29, 2015 14:25
Ejercicio de uso e implementación de listas enlazadas.
#include "nodo.h"
class Lista
{
private:
Nodo *head;
public:
Lista();
//~Lista();