Skip to content

Instantly share code, notes, and snippets.

View pelly-ryu's full-sized avatar

pelly ryu pelly-ryu

View GitHub Profile
@pelly-ryu
pelly-ryu / a.go
Created September 9, 2019 10:42
telegram update msg
type UpdateMsg struct {
UpdateID int64 `json:"update_id"`
Message struct {
Text string `json:"text"`
From struct {
ChatID int64 `json:"id"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Username string `json:"username"`
} `json:"from"`
void reinvestment(double *a, double *b, /*int dh,*/ int re) {
double * arr1;
arr1 = (double *)malloc(sizeof(double) *Dimension);
double * arr2;
arr2 = (double *)malloc(sizeof(double) *Dimension);
for (int i = 0; i < Dimension; i++) {
arr1[i] = *(a + i);
@pelly-ryu
pelly-ryu / server.c
Created April 28, 2019 08:20
대신 만들어 드렸습니다
#include <stdio.h>
#include <stdlib.h>
#include <netdb.h>
#include <netinet/in.h>
#include <string.h>
int main( int argc, char *argv[] ) {
int sockfd, newsockfd, portno, clilen;