Skip to content

Instantly share code, notes, and snippets.

View oosj's full-sized avatar

Omar Juárez oosj

View GitHub Profile
@oosj
oosj / MysqlCS.cs
Created November 10, 2017 23:55
Clase para Conexión a base de datos con MySql y CSharp
using System;
// REQUIERE LA REFERENCIA System.Data
using System.Data;
// REQUIERE LA REFERENCIA MySql.Data
using MySql.Data.MySqlClient;
using System.IO;
/*
#include <iostream>
using namespace std;
int main()
{
for (int i=0; i < 4; i++)
{
for (int j=0; j < 5; j++)
cout << "* ";
cout << endl;
#include <iostream>
using namespace std;
int main()
{
int filas,columnas;
cout << "Cuantas filas necesita: ";
cin >> filas;
cout << "Cuantas columnas necesita: ";
cin >> columnas;
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
using namespace std;
int main()
{
char map[32];
int validar=0;
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
using namespace std;
struct Player
{
string name;
#include <iostream>
#include <stdio.h>
#include <string>
#include <locale.h>
using namespace std;
class Crypto
{
public:
Crypto();
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main()
{
int conjunto[25][25];
int nFilas=8;
int nColumnas=12;
@oosj
oosj / algoritmo_k-means.cpp
Created November 24, 2016 19:20
Algoritmo k-means: Rev. 27
/*
* Programa: ALGORITMO K-MEANS
* Revision: 2016-11-24 13:19:00
* Numero de revision: 27
* Compilador: GCC (Linux)
**/
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <cmath>