1 2 3 4 5 ··· 20 下一页
摘要: 将博客搬至CSDN 阅读全文
posted @ 2017-04-28 09:44 OYJJ 阅读(171) 评论(0) 推荐(0) 编辑
摘要: String.Format("{0,-10}",str);//这个表示第一个参数str字符串的宽度为10,左对齐String.Format("{0,10}",str);//这个表示第一个参数str字符串的宽度为10,右对齐参考:From MSDNFormat Item SyntaxEach format item takes the following form and consists of the following components:{index[,alignment][:formatString]}The matching braces (& 阅读全文
posted @ 2011-09-02 23:01 OYJJ 阅读(18534) 评论(0) 推荐(1) 编辑
摘要: class Program { static void Main(string[] args) { Console.WriteLine("****************************************************************\n"); Console.WriteLine("Http Response Header Resolver V1.00.00\n"); Console.WriteLine("input a url for example:w... 阅读全文
posted @ 2011-09-02 22:54 OYJJ 阅读(5075) 评论(0) 推荐(0) 编辑
摘要: int arr[100]; printf("&arr[0]=%d\n",&arr[0]); printf("arr=%d\n",arr); printf("&arr=%d\n",&arr); printf("&arr[0]+1=%d\n",&arr[0]+1); printf("arr+1=%d\n",arr+1); printf("&arr+1=%d\n",&arr+1);运行的结果&arr[0]=12 阅读全文
posted @ 2011-09-01 22:53 OYJJ 阅读(218) 评论(0) 推荐(0) 编辑
摘要: sscanf char buf[]="port=5000"; char key[100]=""; char value[100]=""; sscanf(buf,"%[^=]=%[^\n]",key,value); printf("key=%s\n",key); printf("value=%s\n",value); strtok char buf[]="port=5000"; char key[100]=""; char value[1 阅读全文
posted @ 2011-09-01 22:45 OYJJ 阅读(1876) 评论(0) 推荐(1) 编辑
摘要: 复制粘贴行1.光标移到要复制的行2.esc到命令模式3.yy将光标所在行复制到缓冲区4.移动光标到要复制到的行5.p将缓冲区内容打印到当前行6.i返回编辑模式 阅读全文
posted @ 2011-08-31 20:27 OYJJ 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 首先下载安装ImageMagickhttp://www.imagemagick.org/script/download.php这个是一个开源的图像处理软件和库。支持命令行方式运行。安装时确保注册了环境变量。其实就是path中包含convert.exe的目录即可。这个convert.exe可以支持各种图像处理操作。这个给出一个图像文件格式的例子。很简单,比如要把1.bmp转为1.pngconvert 1.bmp 1.png为了实现批量转换写两个批处理1.bmp2png_muli.bat 实现文件夹遍历和bmp2png调用clsecho offsetlocal enabledelayedexpan 阅读全文
posted @ 2011-08-25 23:04 OYJJ 阅读(2389) 评论(0) 推荐(0) 编辑
摘要: 请下载这个Assembly。提供了.net3.5和.net4.0版本http://javascriptdotnet.codeplex.com/使用方法1.下载Noesis.Javascript.dll2.Add Referene 加到工程3.运行官方网站上给的Demo4.我新建工程CSJS后附完整代码,运行后可获得命令行输出。这个是对Google's V8 Javascript engine的封装,最好的Javascript引擎了。有了这个我们就可以将一些现有的Javascirpt代码引入到C#的代码中运行了。Project DescriptionJavascript .NET int 阅读全文
posted @ 2011-08-10 22:21 OYJJ 阅读(5598) 评论(4) 推荐(1) 编辑
摘要: /*加一个成员变量*/ CMenu m_menu;/*添加菜单 in OnInitDialog*/ m_menu.LoadMenu(IDR_MENU/*menu id here*/); SetMenu(&m_menu); 阅读全文
posted @ 2011-08-09 22:34 OYJJ 阅读(1384) 评论(0) 推荐(0) 编辑
摘要: 环境变量被破坏%SystemRoot% 不能被解析导致。在Visual Studio中,选择工具->选项->工程和解决方案->VC++目录可执行文件添加:C:\Windows\System32\问题可以解决。 阅读全文
posted @ 2011-08-09 22:29 OYJJ 阅读(2028) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 20 下一页