c# 获取字符串中的数字 /// /// 获取字符串中的数字 /// /// 字符串 /// 数字
例子1: public static decimal GetNumber(string str) { decimal result = 0; if (str
!= null && str != str...
分类:
其他好文 时间:
2014-05-08 13:32:21
阅读次数:
347
java.lang.String.indexOf(char
ch)方法返回字符ch在指定字符串中第一次出现的下标索引位置如果字符ch在指定的字符串中找不到,则返回-1示例:import
java.lang.*;public class StringDemo { public static void....
分类:
编程语言 时间:
2014-05-08 13:02:04
阅读次数:
423
今天遇到一些一般不常用,但说不定什么情况下就能用到的C#关键字。转换关键字explicit定义强制转换//
Must be defined inside a class called Fahrenheit:public static explicit operator
Celsius(Fahrenh...
分类:
其他好文 时间:
2014-05-08 12:42:03
阅读次数:
330
每天积累一点点,一、获取获取根目录的URL的方法#region 获取本页根目录URL
public static string GetRootURI() { string AppPath = ""; HttpContext HttpCurrent
= HttpCont...
分类:
Web程序 时间:
2014-05-08 12:26:13
阅读次数:
346
今天做了一下老师给的第一套题,第一题是判断一个字符串是否在另一个字符串中:做了一下,感觉有好多种写法,java中的类真的好多啊,要掌握好一些基本类的用法:
package com.exam.e120;
public class java1 {
public static void main(String[]args){
String str1,str2;
str1="I am Tom...
分类:
编程语言 时间:
2014-05-08 00:02:39
阅读次数:
423
很多网站已经不满足于一级标题的展示,可能很多的时候有二级标题,三级标题等等。
那么如何设置二级标题以及如何把二级标题做的好看呢。
下面的代码中注意:
1.为了让二级标题有渐隐渐现的感觉,用了transition样式
2.二级标题的定位始终是一个困扰我好久的难题。
要确保一级标题有position属性(不能没有也不能设为static),只有一级标题(父级标题)设了position属...
分类:
Web程序 时间:
2014-05-07 23:44:04
阅读次数:
477
前面有篇文章分析了ELF格式,也只是让我们对目标文件有了一个大概的了解,并没有说明一个十分重要的问题:重定位,今天重新看了下重定位的资料,终于弄懂了重定位的过程,下面来做一个分析。
我们将使用下面两个源代码中的文件a.c和b.c展开分析:
//a.c
extern int shared;
int main()
{
int a=100;
swap(&a,&shared);
}
//b.c
i...
分类:
其他好文 时间:
2014-05-07 22:35:28
阅读次数:
328
static BOOL flag=NO;
dispatch_queue_t myQueue=dispatch_queue_create("identifier", NULL);
dispatch_async(myQueue, ^{
for (int i=0; i
NSLog(@"...
分类:
编程语言 时间:
2014-05-07 21:37:21
阅读次数:
305
static GLint vertices[]={25,25,
100,325,175,25,175,325,250,25,325,325};static GLfloat
colors[]={........};glEnableCli...
分类:
其他好文 时间:
2014-05-07 21:13:39
阅读次数:
295
static class Program { public static
System.Threading.Mutex Run; /// /// 应用程序的主入口点。 /// ...
分类:
其他好文 时间:
2014-05-07 21:01:35
阅读次数:
367