//项目中添加Micrsoft.mshtml引用 --c:/temp/temp.htm-- <html> <script language="JavaScript"> var Temp = "Zswang 路过 :)"; </script> </html> using mshtml; private ...
分类:
Web程序 时间:
2017-01-24 22:52:24
阅读次数:
266
var vXMLDocument: TXMLDocument;begin vXMLDocument := TXMLDocument.Create('c:/temp/temp.xml'); Caption := IntToStr(vXMLDocument.Node.ChildNodes.Count); ...
上一节讨论了 volatile关键字,volatile关键字修饰的作用是不具有 "原子性" 和 "互斥性的" 例如 i++ 操作 就不是一个原子性的操作,i++ 其实分为3个步骤进行 "读-改-写" int temp = i; i = i + 1; i= temp; 先看一段代码: 创建10个线程, ...
分类:
编程语言 时间:
2017-01-22 23:44:13
阅读次数:
278
int[] arr=new int[]{4,5,6,8}; int temp=arr[2];//获取第3个元素6 //交换数组下标为2和3的两个相邻元素的值 //int temp=arr[2]; arr[2]=arr[3]; arr[3]=temp; for(int i=0;i<arr.length ...
分类:
编程语言 时间:
2017-01-22 16:53:08
阅读次数:
176
前言:因为工作环境需要,更改了驱动目录,今天折腾NODE,出了Invalid drive错误。卸载也报这个错,搜了一下Invalid drive解决方案 方法:模拟一个假的驱动目录,欺骗电脑。 第一步 进入运行输入 subst E:%TEMP%(缺什么盘写什么盘,我缺E,我写E) 第二步 执行你想在 ...
分类:
Web程序 时间:
2017-01-19 22:36:39
阅读次数:
1488
如题 取消校验和校验即可: struct nids_chksum_ctl temp;temp.netaddr = 0;temp.mask = 0;temp.action = 1;nids_register_chksum_ctl(&temp,1); 在init之前。 ...
分类:
其他好文 时间:
2017-01-19 19:44:39
阅读次数:
193
ERROR ITMS-90087: "Unsupported Architectures. The executable for yht.temp_caseinsensitive_rename.app/Frameworks/VideoCore.framework contains unsupport ...
分类:
移动开发 时间:
2017-01-19 12:30:06
阅读次数:
1819
#!/usr/bin/envpython
#-*-coding:utf-8-*-
l=[1,8,3,5,6,2,4,7,9,0]
forendinrange(len(l))[::-1]:
flag=False#标志判断是否有交换
foriinrange(0,end):
ifl[i]>l[i+1]:
temp=l[i]
l[i]=l[i+1]
l[i+1]=temp
flag=True
ifflag==False:#如果遍历一次没有发生交换,说明该序..
分类:
编程语言 时间:
2017-01-18 23:42:49
阅读次数:
216
/* 三色汉诺塔 */ #include void hanoi(int disks, char source, char temp, char target) { if(disks == 1) { printf("move disk from %c to %c \n", source ,target... ...
分类:
其他好文 时间:
2017-01-18 13:56:52
阅读次数:
193
/* 二色汉诺塔 */ #include void hanoi(int disks, char sources, char temp, char target) { if(disks == 1) { printf("move disk from %c to %c \n", sources, targ... ...
分类:
其他好文 时间:
2017-01-18 13:43:33
阅读次数:
173