기본 동작원리는 다음과 같습니다. 먼저 클라이언트가 접속하기 위해서는 서버가 동작하고 있어야 합니다. 채팅서버를 사용하는 화면예시.. 1) 서버측 연결화면. 아래의 파일은 .NET2005(Framework 2.0), Windows2003 Server, C#으로 구현되었습니다. 압축을 풀고 솔루션을 열면 서버(Server), 클라이언트(Client), ChattingService(웹기반)솔루션이 차례로 열릴 것입니다. ----- Server (Server.CS) => ----- using System; using System.IO; using System.Net; using System.Data; using System.Text; using System.Drawing; using System.Net.Soc..
선형 콘그루엔셜 방법(Hull. De bull 제안) 1. 하나의 초기 숫자를 설정(x0) 2. 3개의 상수 a, c, m을 수식에 대입해 난수를 발생시킨다. 수식 : x1 = (a * x0 + c) % m 3. 다음 조건을 만족해야 한다. a < m, c < m, 0 < m 위 알고리즘을 C#으로 표현한 소스는 다음과 같다. using System; using System.IO; using System.Text; using System.Collections; namespace TestLCG { class Program { static void Main(string[] args) { if (args.Length != 5) { Console.WriteLine("순서) A, C, M, X 초기값, 횟수");..
reference : http://msdn2.microsoft.com/en-us/library/ms752059.aspx XAML Overview This topic describes the features of the Extensible Application Markup Language (XAML) language and demonstrates how you can use XAML to write Windows Presentation Foundation (WPF) applications. This topic specifically describes XAML as implemented by Windows Presentation Foundation (WPF). XAML itself is a larger la..