码迷,mamicode.com
首页 > 其他好文
跨域访问
出于安全因素考虑,直接跨域访问是不允许的,下面介绍二种跨域的方法。 一,通过php curl 1 function curlPost($url,$params) 2 { 3 $postData = ''; 4 foreach($params as $k => $v) 5 { 6 $postD...
分类:其他好文   时间:2015-04-26 15:10:14    阅读次数:146
HDU2126——背包DP(开状态)——Buy the souvenirs
DescriptionWhen the winter holiday comes, a lot of people will have a trip. Generally, there are a lot of souvenirs to sell, and sometimes the travele...
分类:其他好文   时间:2015-04-26 15:12:47    阅读次数:129
《热爱生命》
《热爱生命》文/汪国真我不去想是否能够成功既然我选择了远方便只顾风雨兼程我不去想是否能赢得爱情 既然忠诚于玫瑰就勇敢地吐露真诚我不去想身后会不会袭来寒风冷雨既然目标是地平线留给世界的只能是背影我不去想未来是平坦还是泥泞只要热爱生命一切,都在意料之中
分类:其他好文   时间:2015-04-26 15:09:57    阅读次数:93
XmlSerializer序列化小结
XmlSerializer在命名空间using System.Xml.Serialization下。序列化和反序列化的代码:using System.IO;using System.Xml;using System.Xml.Serialization;namespace ConsoleApplic....
分类:其他好文   时间:2015-04-26 15:11:00    阅读次数:212
Selenium2Library系列 keywords 之 _SelectElementKeywords 之 get_selected_list_label(self, locator)
1 def get_selected_list_label(self, locator):2 """Returns the visible label of the selected element from the select list identified by `lo...
分类:其他好文   时间:2015-04-26 15:08:13    阅读次数:148
关于response.write(alert(''))弹窗改变页面格式问题
不建议使用Response.Write("");而使用 Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MyScript", "alert('增加年级失败')", true);
分类:其他好文   时间:2015-04-26 15:09:11    阅读次数:114
迭代法求平方根
求n的平方根,先假设一猜测值X0 = 1,然后根据以下公式求出X1,再将X1代入公式右边,继续求出X2…通过有效次迭代后即可求出n的平方根,Xk+1#include #include int main(){ double x,y,a; while(scanf("%lf",&a)!=EOF) { x....
分类:其他好文   时间:2015-04-26 15:08:50    阅读次数:195
并发 ping
参考[root@RS2 ~]# cat 5.sh#!/bin/bash# 2006-7-12, by wwy#-----------------------------------------------------------------------------------# 此例子说明了一种用w...
分类:其他好文   时间:2015-04-26 15:08:49    阅读次数:122
模拟 ZOJ 3878 Convert QWERTY to Dvorak
题目传送门 1 /* 2 模拟:手敲map一一映射,累! 3 除了忘记读入字符串不能用gets用getline外还是很顺利的AC了:) 4 */ 5 #include 6 #include 7 #include 8 #include 9 #include 10 #in...
分类:其他好文   时间:2015-04-26 15:09:00    阅读次数:204
otl插入数据不成功
原因是:void rlogon(...); 没有设置auto_commit为1,otl不会自动提交。注意:static int otl_initialize (const int threaded_mode=0); 0是单线程,1是多线程。但是otl不是线程安全的,需要自己管理。
分类:其他好文   时间:2015-04-26 15:08:59    阅读次数:129
Selenium2Library系列 keywords 之 _SelectElementKeywords 之 get_list_items(self, locator)
1 def get_list_items(self, locator):2 """Returns the values in the select list identified by `locator`.3 4 Select list keywords wo...
分类:其他好文   时间:2015-04-26 15:08:07    阅读次数:130
openvc中读取图像访问图像中像元的的方法
一、读取图像1、利用Mat数据结构读取和显示图片#include"cv.h"#include "highgui.h"#includeusing namespace std;using namespace cv;int _tmain(int argc, _TCHAR* argv[]){ Mat i.....
分类:其他好文   时间:2015-04-26 15:06:59    阅读次数:207
【原】yield的最基本用法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Itcast.Mall.ConsoleApp{ class Program { stati...
分类:其他好文   时间:2015-04-26 15:05:06    阅读次数:108
函数手册
rand() : 随机函数select rand() --0.360488401772625 (随机0-1之间的数字)select rand()*20 --13.6901151301897(后面可以使用运算符,调整想要的随机数范围)select char(65+ceiling(rand()*25.....
分类:其他好文   时间:2015-04-26 15:07:27    阅读次数:113
UVA253Cube painting骰子涂色
We have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors....
分类:其他好文   时间:2015-04-26 15:04:55    阅读次数:142
快捷键应用
快捷键应用windows比较有用的一些快捷键1.Windows+L锁屏2.windows+E 资源管理器(我的电脑图标打开后的效果)3.windows+D 回到桌面4.windows+tab 3D效果切换桌面5.录像功能 windows+R,输入prs.exe,回车,开始记录。6.windoes+X...
分类:其他好文   时间:2015-04-26 15:04:45    阅读次数:142
Team Formation
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 using namespace std;11 const int MM=100...
分类:其他好文   时间:2015-04-26 15:06:30    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!