1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace S...
c#小数精度c#中对于double型的小数如果想保留一定的精度,即小数点位数,可以在转换成字符串的时候,用参数限制;下面的程序演示了这个做法using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;namespace double...
Learn to EstimateGiovanni AsproniAS A PROGRAMMER, you need to be able to provide estimates to your man- agers, colleagues, and users for the tasks you need to perform, so that they will have a reasonab...
分类:
其他好文 时间:
2015-05-16 09:07:09
阅读次数:
129
1,使用委托实现一个音乐播放器的功能呢。(模拟事件)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace 模拟事件
{
///
/...
分类:
其他好文 时间:
2015-05-16 01:29:53
阅读次数:
123
Demo基于http://www.cnblogs.com/zhili/p/MSMQ.htmlServer代码:using System.Messaging;using System.Text;using System.Threading.Tasks;namespace MSMQServer{ ...
分类:
其他好文 时间:
2015-05-14 23:40:12
阅读次数:
185
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication1
{
classProgram
{
//函数重载:是指同一个函数名可以对应着多个函数的实现,每个实现对应一个函数体,但是函数的参数类型不同..
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication1
{
//委托:它把引用存储为函数的类型;多用于事件及事件的处理;
//委托声明不带函数体;使用delegate关键字;需要知道一个返..
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication1
{
classProgram
{
//Main()是C#应用程序的入口点,执行这个函数就是执行应用程序;在Main()函数中执行完毕,执行过程就结束了..
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication1
{
classProgram
{
//定义结构函数
structcustomerName
{
publicstringfirstName,lastName;
publicstringname()
{
returnfirst..
官方是这么说的:Cluster resources can be under-utilized if the number of parallel tasks used in any stage of the computation is not high enough. For example, ...
分类:
其他好文 时间:
2015-05-14 11:36:56
阅读次数:
359