TCP解包与封包

作者:追风剑情 发布于:2019-8-26 16:32 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestConsole { class Program { static void Main(strin...

阅读全文>>

标签: C#

评论(0) 浏览(5236)

TcpClient

作者:追风剑情 发布于:2019-8-26 11:57 分类:C#

示例:聊天室 服务端代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading; using System.Net; using System.Net.So...

阅读全文>>

标签: C#

评论(0) 浏览(4840)

WPF—数据双向绑定

作者:追风剑情 发布于:2019-8-23 18:29 分类:C#

MainWindow.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schema...

阅读全文>>

标签: C#

评论(0) 浏览(5941)

C语言—文件操作

作者:追风剑情 发布于:2019-8-22 15:33 分类:C

示例一:向文件中写入字符串 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { FILE *fp; //打开文件,如果文件不存在,则自动创建 if ((fp = fopen("D:\\demo.txt", "at+")) == NULL) { puts("Fail ...

阅读全文>>

标签: C语言

评论(0) 浏览(3777)

WPF—DispatcherTimer

作者:追风剑情 发布于:2019-8-20 21:55 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Window...

阅读全文>>

标签: C#

评论(0) 浏览(4027)

WPF—截屏

作者:追风剑情 发布于:2019-8-20 17:01 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Window...

阅读全文>>

标签: C#

评论(0) 浏览(4784)

Task.Delay()

作者:追风剑情 发布于:2019-8-20 11:00 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Window...

阅读全文>>

标签: C#

评论(0) 浏览(3633)

WPF—延迟执行

作者:追风剑情 发布于:2019-8-19 22:43 分类:C#

示例: 参考https://www.cnblogs.com/qldsrx/archive/2013/02/22/2922682.html using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System....

阅读全文>>

标签: C#

评论(0) 浏览(5133)

WPF—ComboBox

作者:追风剑情 发布于:2019-8-19 12:05 分类:C#

示例 MainWindow.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="ht...

阅读全文>>

标签: C#

评论(0) 浏览(3409)

WPF—ResourceDictionary

作者:追风剑情 发布于:2019-8-16 17:40 分类:C#

一、新建资源字典文件 Dictionary1.xaml <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/x...

阅读全文>>

标签: C#

评论(0) 浏览(4397)

WPF—INotifyPropertyChanged

作者:追风剑情 发布于:2019-8-16 14:45 分类:C#

示例 XAML <Window x:Class="WpfTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xm...

阅读全文>>

标签: C#

评论(0) 浏览(4134)

WPF—PropertyMetadata

作者:追风剑情 发布于:2019-8-14 21:30 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Window...

阅读全文>>

标签: C#

评论(0) 浏览(3829)

C语言—常量和预处理器

作者:追风剑情 发布于:2019-7-21 14:39 分类:C

示例 //Visual Studio中加上这句才可以使用scanf() //否则只能使用scanf_s() #define _CRT_SECURE_NO_WARNINGS //用#define定义的常量称为明示常量 #define PI 3.14 //引入printf()、scanf_s() #include <stdio.h> #includ...

阅读全文>>

标签: C语言

评论(0) 浏览(4129)

C语言—scanf_s()

作者:追风剑情 发布于:2019-7-20 21:36 分类:C

示例 //Visual Studio中加上这句才可以使用scanf() //否则只能使用scanf_s() #define _CRT_SECURE_NO_WARNINGS //引入printf()、scanf_s() #include <stdio.h> #include <stdint.h> //引入bool类型,C99标准新增 #include ...

阅读全文>>

标签: C语言

评论(0) 浏览(11605)

C语言—bool类型

作者:追风剑情 发布于:2019-7-20 15:16 分类:C

示例 #include <stdio.h> #include <stdint.h> //引入bool类型,C99标准新增 #include <stdbool.h> #include <windows.h> //对于不支持C99的编译器可以通过宏定义bool类型 //#define bool int //#define tr...

阅读全文>>

标签: C语言

评论(0) 浏览(4225)

C语言—控制台中显示进度值

作者:追风剑情 发布于:2019-7-19 20:57 分类:C

示例 #include <stdio.h> #include <windows.h> int main(void) { for (int i = 0; i <= 100; i++) { //\r使光标回到行首 printf("load: %d%% \r", i); Sleep(200);//暂停200毫秒 } ...

阅读全文>>

标签: C语言

评论(0) 浏览(3599)

C语言—char类型

作者:追风剑情 发布于:2019-7-18 22:22 分类:C

示例 #include <stdio.h> int main(void) { //美国最常用的是ASCII编码 //其他国家的计算机系统可能使用完全不同的编码 //标准ASCII码的范围是0~127,只需7位二进制数即可表示。 char c = 'A'; char c_ASCII = 65; //'A' //用%c打印字符,用%d打印字符...

阅读全文>>

标签: C语言

评论(0) 浏览(5694)

委托与匿名方法

作者:追风剑情 发布于:2019-7-18 16:14 分类:C#

示例 using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace Test { delegate void Printer(string s); class Prog...

阅读全文>>

标签: C#

评论(0) 浏览(4532)

C语言—转义序列

作者:追风剑情 发布于:2019-7-17 23:07 分类:C

转义序列 转义序列 含义 \a C90新增,警报 (ANSI C),发出蜂鸣声(能否听到或看到警报取决于计算机硬件),对应的ASCII码为'\007'或'\07'或'\7',如果编译器不识别警报字符(\a),可以使用ASCII码来代替。代码示例:...

阅读全文>>

标签: C语言

评论(0) 浏览(4950)

IEnumerable与IEnumerator

作者:追风剑情 发布于:2019-7-17 10:36 分类:C#

一、IEnumerable与IEnumerator之间的关系 namespace System.Collections { public interface IEnumerable { IEnumerator GetEnumerator(); } } namespace System.Collections { pub...

阅读全文>>

标签: C#

评论(0) 浏览(4577)

C语言—printf()

作者:追风剑情 发布于:2019-7-16 21:34 分类:C

示例: #include <stdio.h> int main(void) { int x = 100;//十进制 int x1 = 0100;//八进制 int x2 = 0x100;//或0X100 十六进制 long x3 = 100L;//或100l long x4 = 020L; long x5 = 0x10L; long ...

阅读全文>>

标签: C语言

评论(0) 浏览(7612)

WWW

作者:追风剑情 发布于:2019-7-16 17:59 分类:Unity3d

示例一:实现一个简单的加载队列 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// WWW加载队列 /// </summary> public class WWWQueue : Mo...

阅读全文>>

标签: Unity3d

评论(0) 浏览(4021)

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号