본문 바로가기

전체 글

2022 연습 b-3 using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading; using System.Threading.Tasks; namespace TEST { public class HttpResult { public string result { get; set; } } public class param { public string uri { get; set; } pu.. 더보기
2022 연습 a-4 using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Text; using System.Threading; using System.Threading.Tasks; namespace TEST { class Param { public HttpListenerContext ctx { get; set; } public string url; public string method; public string query; public string header; } class Prog.. 더보기
2022 연습 a using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Text; using System.Threading; using System.Threading.Tasks; namespace AAA { class Param { public HttpListenerContext ctx { get; set; } public string url; public string method; public string query; } class Program { static Dictionary.. 더보기
task using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading; using System.Threading.Tasks; namespace TEST { public class HttpResult { public string result { get; set; } } public class param { public string uri { get; set; } pu.. 더보기
중국어 병음 성조 입력기 중국어 성조 입력하기 쉬운 방법 나도 검색하다가 주워온 프로그램인데 은근히 편함 1. 설치하고 2. alt + shift로 언어를 '중국어(간체)'로 선택 니하오 글 쓰려면 ni3hao3 이렇게 쓰고 엔터치면 이렇게 나옴 ==> nǐhǎo 중간에 한글이나 영어로 바꾸려면 alt+shift로 한글 선택 중국어 공부 열심히 하쟈~~~ 시원스쿨 보니, 한글에 성조 입력해서 하면 더 좋을 것 같은데 프로그램이나 하나 만들어볼까.. 더보기
중국어 인사 안녕하세요 nǐhǎo 니하오 더보기
client 다른 버전 using System; using System.IO; using System.Net; using System.Net.Sockets; namespace SUB5 { class SUB5 { const string strIP = "127.0.0.1"; const int BUF_SIZE = 4096; const int PORT = 9090; public static void StartClient(string fpath) { // Data buffer for incoming data. byte[] bytes = new byte[BUF_SIZE]; // Connect to a remote device. try { // Establish the remote endpoint for the socket. // This.. 더보기
server 다른 버전 using System;using System.IO;using System.Net;using System.Net.Sockets; namespace SUB5_Server{ class SUB5_Server { const string strIP = "127.0.0.1"; const int BUF_SIZE = 4096; const int PORT = 9090; public static void StartListening(string path) { // Data buffer for incoming data. byte[] bytes = new Byte[BUF_SIZE]; // Establish the local endpoint for the socket. // Dns.GetHostName returns the na.. 더보기
C# 문자->숫자 static void Main(string[] args) { StreamReader file = new StreamReader("numbers.txt"); List list = new List(); while (!file.EndOfStream) { string s = file.ReadLine(); list.Add(Int32.Parse(s)); } Console.WriteLine("===== 정렬 전 ====="); for(int i=0;i 더보기
C# 문자열->시간 static int get_diff_dtime(string date1, string date2) { /* string myStringDate = "1999/9/9"; // String을 DateTime으로 변환 DateTime myDate = DateTime.Parse(myStringDate); // DateTime을 String으로 변환 string myConvertedDate = myDate.ToString("yyyy/MM/dd hh:mm:ss"); */ IFormatProvider KR_Format = new System.Globalization.CultureInfo("ko-KR", true); DateTime d1 = DateTime.ParseExact(date1, "yyyyMMddHHmmss",.. 더보기