码迷,mamicode.com
首页 >  
搜索关键字:returns    ( 2350个结果
8(进程控制)
本章需要熟练掌握如下几个函数fork,exec族,_exit,wait,waitpid1 进程标识符#include pid_t getpid(void); Returns: process ID of calling process pid_t getppid(void); Returns: parent process ID of calli...
分类:系统相关   时间:2016-04-22 19:01:41    阅读次数:268
prism Callback应用
Mock<IEventAggregator> mockEventAggregator; Mock<MyEvent> mockEvent; mockEventAggregator.Setup(e => e.GetEvent<MyEvent>()).Returns(mockEvent.Object); ...
分类:其他好文   时间:2016-04-22 18:23:07    阅读次数:139
[LeetCode] Reverse String 翻转字符串
Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". 这道题没什么难度,直接从两头往中间走,同时交换两边的字 ...
分类:其他好文   时间:2016-04-22 13:23:36    阅读次数:159
获取真ip
/// <summary> /// 获取真ip /// </summary> /// <returns></returns> public string GetRealIP() { string result = String.Empty; // result = System.Web.HttpCo ...
分类:其他好文   时间:2016-04-21 10:13:01    阅读次数:107
Calling a parent window function from an iframe
I want to call a parent window JavaScript function from an iframe. Answers See window.parent Returns a reference to the parent of the current window o ...
分类:Windows程序   时间:2016-04-19 11:35:52    阅读次数:213
SQL对字符串数组的处理
一,用临时表作为数组 复制代码代码如下: create function f_split(@c varchar(2000),@split varchar(2)) returns @t table(col varchar(20)) as begin while(charindex(@split,@c) ...
分类:数据库   时间:2016-04-18 19:00:16    阅读次数:175
创建文本注记TextElement
1.创建一个字体 /// <summary> /// 字体设置 /// </summary> /// <param name="size">The size.</param> /// <param name="fontname">The fontname.</param> /// <returns> ...
分类:其他好文   时间:2016-04-15 10:37:08    阅读次数:878
创建一个点状注记(MarkerElement)
1.根据XY创建一个点 /// <summary> /// 根据x y创建新点 /// </summary> /// <param name="dX">x坐标值</param> /// <param name="dY">y坐标值</param> /// <returns>返回点要素</returns ...
分类:其他好文   时间:2016-04-15 10:31:50    阅读次数:158
c#中的保留两位小数并且四舍五入
Math.Round(45.367,2) //Returns 45.37 Math.Round(45.365,2) //Returns 45.36 C#中的Round()不是我们中国人理解的四舍五入,是老外的四舍五入,是符合IEEE标准的四舍五入,具体是四舍六入,下面的才是符合中国人理解的四舍五入 ...
分类:Windows程序   时间:2016-04-14 15:37:48    阅读次数:173
sql json 转成表格
ALTER FUNCTION [dbo].[parseJSON]( @JSON NVARCHAR(MAX))RETURNS @hierarchy TABLE ( element_id INT IDENTITY(1, 1) NOT NULL, /* internal surrogate primary ...
分类:数据库   时间:2016-04-13 19:02:18    阅读次数:633
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!