Skip to content

Instantly share code, notes, and snippets.

View pony012's full-sized avatar

Alan Andrés Sánchez Castro pony012

View GitHub Profile
#include <iostream>
using namespace std;
bool isprime(int n);
int main(){
int n,i,j;
/*
Practica01
Sánchez Castro Alan Andrés
208697345
*/
#include <stdio.h>
#include <stdlib.h>
typedef struct nodo{
e000....86 59
e002....8B 78
e004....18 07
e006....6B 08 02
e009....87
e010....96 10
e012....9B 11
e014....5A 08
e016....FE 08 00
e019....06 E0 14
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class Automata:
def __init__(self):
W = 39
E = 20
self.W = W
self.E = E
"""
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Alan Andrés Sánchez Castro
from Tkinter import *
from Linea import *
from Automata import *
import Util
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class Automata:
def __init__(self, s = None):
W = 48
E = 20
self.W = W
self.E = E
#include <windows.h>
#include <math.h>
#include <GL/glut.h>
#define WIDTH 400
#define HEIGHT 300
#define STEP 13
int buff[WIDTH][HEIGHT];
;;;(compile-file "ltk")
(load "ltk")
(defpackage :gui
(:use :common-lisp :ltk)
(:export #:main)
)
(in-package :gui)
#include <iostream>
#include <vector>
using namespace std;
class Cliente
{
public:
int id;
string nombre;

#Práctica 1 ###Cliente/Servidor

No importa nada de los núcleos (funciona de forma tramposa).

Cliente prepara mensaje

/*Cliente*/
byte msg[]; //Solicitud empaquetada (nombre, codop)
send(idDst, msg);