在 C# 中可以对字符串使用 PadLeft 和 PadRight 进行轻松地补位。 PadLeft(int totalWidth, char paddingChar) //在字符串左边用 paddingChar 补足 totalWidth 长度 PadRight(int totalWidth, c ...
分类:
Windows开发 时间:
2016-04-04 00:06:33
收藏:
0 评论:
0 赞:
0 阅读:
283
1.下载程序 安装包 https://github.com/boot2docker/windows-installer/releases(这个地址国内下载很慢) 用这个: https://get.daocloud.io/toolbox/ 一定要选择最新版的安装,不然后面的启动会有一个更新过程,会很慢 ...
分类:
Windows开发 时间:
2016-04-03 23:46:03
收藏:
0 评论:
0 赞:
0 阅读:
805
int: 表示一种整型,范围存储值(-2,147,483,648 到 2,147,483,647,10位数) 倒如:3、 5、100、10 等 int number;//声明一个整数的数字类型变量 number = 1000; Console.WriteLine(number);//注意此处不能加引 ...
分类:
Windows开发 时间:
2016-04-03 22:14:22
收藏:
0 评论:
0 赞:
0 阅读:
353
一、C#中弹出窗口位置 加入命名空间using System.Drawing和using System.Windows.Forms假定窗口名为form1,则 form1.StartPosition = FormStartPosition.CenterScreen;窗体位置在屏幕中间 form1.St ...
分类:
Windows开发 时间:
2016-04-03 21:55:12
收藏:
0 评论:
0 赞:
0 阅读:
284
操作环境:win7、VirtualBox-5.0.16、ubuntukylin-14.04.2-desktop-amd64 1、先下载安装VBoxGuestAdditions_5.0.17-106140.iso(下载地址去官网https://www.virtualbox.org/下载) 安装步骤如下 ...
分类:
Windows开发 时间:
2016-04-03 21:48:02
收藏:
0 评论:
0 赞:
0 阅读:
370
前几天客户的系统做升级,需要用到AzureCLI,客户那边新来的小朋友根据我给的教程连了一个下午都没连上。他告诉我之后,我火速帮他查到底哪出了问题,一直把报错的截图拿过来分析。我自己试了好几次都可以连上没问题。最后的最后,当我找到问题出在哪儿的时候,我简直是一脸小..
分类:
Windows开发 时间:
2016-04-03 20:34:13
收藏:
0 评论:
0 赞:
0 阅读:
323
C#获取颜色的argb的值实例:UInt16C=0x597f;//16进制颜色值
byteR,G,B;//8位RGB值
R=(byte)(C>>10);//取出高位R的分量
G=(byte)((C>>5)&0x1f);//取出高位G的分量
B=(byte)(C&0x1f);//取出高位B的分量
Colora=Color.FromArgb(255,R,G,B);FromArgb(a,r,g..
分类:
Windows开发 时间:
2016-04-03 20:28:03
收藏:
0 评论:
0 赞:
0 阅读:
347
各种颜色RGB值■RGB(255,192,203)■★●◆pink(粉红)■RGB(220,20,60)■★●◆crimson(腥红)■RGB(255,240,245)■★●◆lavenderblush(苍白的紫罗兰红)■RGB(219,112,147)■★●◆palevioletred(脸红的淡紫红)■RGB(255,105,180)■★●◆hotpink(热情的粉红)■RGB(19..
分类:
Windows开发 时间:
2016-04-03 20:27:43
收藏:
0 评论:
0 赞:
0 阅读:
343
ConcurrentBag<T>与List<T> 我遇到的一个情况是: using System.Collections.Concurrent; class WX { public string wxNo; public string wxPsw; } static public bool Read ...
分类:
Windows开发 时间:
2016-04-03 18:55:22
收藏:
0 评论:
0 赞:
0 阅读:
3118
题目链接 斜率优化 ...
分类:
Windows开发 时间:
2016-04-03 18:49:52
收藏:
0 评论:
0 赞:
0 阅读:
283
...
分类:
Windows开发 时间:
2016-04-03 18:49:02
收藏:
0 评论:
0 赞:
0 阅读:
148
变量关系到数据的存储。 变量有不同的内涵,称之为类型 原因是:不同类型的数据需要用不同方法处理,变量限定为不同的类型,可以避免不必要的混淆。 要使用变量,需要声明它们,即给它们指定名称和类型。如果使用未声明的变量,代码将无法编译。 1.简单类型 就是组成应用程序中基本构件的类型,例如:数值和逻辑值( ...
分类:
Windows开发 时间:
2016-04-03 18:47:52
收藏:
0 评论:
0 赞:
0 阅读:
435
利用#region 和#endregion 来定义展开和折叠的区域代码 其实以#开头的关键字都是一组预处理命令,严格的说并不是c#关键字,除了#region 和#endregion 之外,其他关键字都相当复杂,用法也比较专业。 ...
分类:
Windows开发 时间:
2016-04-03 18:47:02
收藏:
0 评论:
0 赞:
0 阅读:
230
今天遇到一个问题,点击一个按钮,这个按钮所在的layer从scene移除: 这些代码在mac上运行的时候一直没有问题,今天在windows7机子上运行同一份代码结果崩掉了,模拟器窗口和调试窗口都卡住了。后来把问题代码集中到了self:removeFromParent()上,网上找了找,说使用延时删除 ...
分类:
Windows开发 时间:
2016-04-03 18:46:12
收藏:
0 评论:
0 赞:
0 阅读:
332
1. Debain 系列 linux sudo aptitude install rdesktop 2. Connect rdesktop <hostname> -r sound:off -g 1024:768 remote desktop to Windows, 命令常忘,记录。个人感觉比 VNC ...
分类:
Windows开发 时间:
2016-04-03 18:42:14
收藏:
0 评论:
0 赞:
0 阅读:
256
将“早期版本的Windows”改名,并修改系统等待时间 问题描述: 先装Windows XP,再装Windows 7,启动菜单会出现“早期版本的Windows”与“Windows 7”两个选项条。 希望将“早期版本的Windows”改名为“Windows XP”,并将等待时间改为5秒。 实现方法: ...
分类:
Windows开发 时间:
2016-04-03 17:30:32
收藏:
0 评论:
0 赞:
0 阅读:
269
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 ...
分类:
Windows开发 时间:
2016-04-03 17:11:42
收藏:
0 评论:
0 赞:
0 阅读:
239
namespace _03我的第三个项目_练习{ class Program { static void Main(string[] args) { Console.WriteLine("*******************************************"); Console.W ...
分类:
Windows开发 时间:
2016-04-03 16:05:02
收藏:
0 评论:
0 赞:
0 阅读:
257
网站部署之~Windows Server | 本地部署:http://www.cnblogs.com/dunitian/p/4822808.html#iis 添加角色 基本功能 默认即可 装一下iis 选4.5和iis核心 其他的下面继续选 安全肯定全要的,常见HTTP和应用程序开发都是要部分安装的 ...
分类:
Windows开发 时间:
2016-04-03 16:04:02
收藏:
0 评论:
0 赞:
0 阅读:
289
F5打开运行,如下: 复制保存如下指令: 编译:cmd /k C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /out:"$(CURRENT_DIRECTORY)\$(NAME_PART).exe" "$(FULL_CURRENT_PATH ...
分类:
Windows开发 时间:
2016-04-03 15:55:34
收藏:
0 评论:
0 赞:
0 阅读:
287