1 2 3 4 5 ··· 15 下一页
摘要: ```csusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { Console.WriteLine("1380094216 = {0}", new DateTime(((long)(1380094216) * (long)(10000000)), DateTimeK... 阅读全文
posted @ 2013-10-10 16:58 常伟华 阅读(276) 评论(0) 推荐(0) 编辑
摘要: ```cvoid f(){ int i1,i2,i3,i4,i5,i6,i7,i8; for (i1=1;i1<32;i1++) for (i2=1;i2<32;i2++){ if (i1==i2) continue; for (i3=1;i3<32;i3++){ if (i1==i3) continue; if (i2==i3) continue; ... 阅读全文
posted @ 2013-10-10 16:50 常伟华 阅读(999) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { int nCnt = 0; List nNumList = new List(); for (int i = 0; i nNumList[i2] || nNumList[i2] > nNumList[i3] || nNumList[i3] > nNumList[i4] || nNumList[i4] > nNumList[i5] || nNumList[i5] > nNumList[i... 阅读全文
posted @ 2013-10-10 16:49 常伟华 阅读(4150) 评论(0) 推荐(0) 编辑
摘要: 文件墙 CFilewall 记于 2013-09-26==@[代码] [C#] []WPF]#### 使用了一些公司的组件和放大,但是不多,可以单独抽取出来---程序结构- Control - CS - FileWallItemsControl.cs - XAML - FileElementUserControl.xaml- Images- Model - FileModel.cs - FileModelContainer.cs- Themes- Tools - ConstantClass.cs- App.xaml- FileContainers- FileWallUserControl... 阅读全文
posted @ 2013-09-26 11:01 常伟华 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 标签: `代码` `C#` `WPF`**遍历文件夹下任意类型的文件**```cs Loaded += delegate { var arr = "*.png|*.jpg|*.jpeg|*.gif".Split('|').SelectMany(filter => new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)).GetFiles(filter, SearchOption.AllDirectories)).ToArray(); };```- 阅读全文
posted @ 2013-09-23 10:38 常伟华 阅读(385) 评论(0) 推荐(1) 编辑
摘要: # 简单的同步MSMQ```cs using System; using System.Messaging; using System.Windows.Forms; namespace MSMQExample { /// /// 一个简单的MSMQ例子,目前只是同步操作。 /// public partial class Form1 : Form { private string queuestring = @".\Private$\MyQueue"; ... 阅读全文
posted @ 2013-09-22 23:48 常伟华 阅读(365) 评论(0) 推荐(1) 编辑
摘要: 使用说明=========@[手册|帮助|Markdown]- **马克飞象**是一款专为印象笔记打造的Markdown编辑器。- 特别需要说明的一点是增加了`@(笔记本)[标签]`语法,以此选择笔记本和添加标签。**绑定账号后**,输入`(` 自动会出现笔记本列表,请从中选择。自己纯手工输入无效。- 支持插入图片,无论是本地上传/图片URL/拖放图片/直接粘贴,总有一款适合你。- 支持[Github风格的Markdown](https://help.github.com/articles/github-flavored-markdown),比如代码块:```ruby def say_h... 阅读全文
posted @ 2013-09-22 23:20 常伟华 阅读(706) 评论(0) 推荐(1) 编辑
摘要: # Freezable 对象(WPF) #> Freezable 继承自 DependencyObject,同时添加了 Freezable 方法,用于冻结对象。---## 冻结对象 ##以此为示例```ruby def say_hi print "hello world" end``````cs namespace ConsoleApplication2 { public class Person : Freezable { public string Name { ... 阅读全文
posted @ 2013-07-07 14:05 常伟华 阅读(1359) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <math.h> 3 4 int main() 5 { 6 long int sum; 7 long int a,b; 8 int ka = 0,kb,i,j; 9 printf("Enter sum:\n");10 scanf("%ld",&sum);11 for(a = 100; a <= sum; a++)12 {13 b = sum -a;14 if(b < 100)15 {16 return... 阅读全文
posted @ 2012-08-10 20:13 常伟华 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 3 int main() 4 { 5 //实现幂函数 6 double power(double x, double y); 7 8 printf("%f\n", power(2.0, 3.0)); 9 10 //开跟号11 double ssqrt(double x);12 printf("%f\n", ssqrt(64.0));13 14 15 //统计输入的数字、空白符(空格、制表符、回车符)以及所有其他字符出现的次数 16 // F6 或... 阅读全文
posted @ 2012-08-05 09:31 常伟华 阅读(286) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 15 下一页