- 博客(6)
- 问答 (1)
- 收藏
- 关注
原创 关于ResultSet的getRow()函数
ResultSet的getRow()函数的返回结果是当前数据集的行号,而不是结果的行数 如果要获取行数,可以这样 rs.last(); int row=rs.getRow(); rs.beforeFirst();
2017-02-23 19:17:50
16140
1
原创 CORS 头缺少 'Access-Control-Allow-Origin'(跨域访问不允许)
用web开发移动应用时遇到了这么个问题,想要在移动端加载服务器上的一个php文件,结果无法加载,浏览器显示 CORS 头缺少 'Access-Control-Allow-Origin'. 原因是这样的,这涉及到了一个跨域访问的问题,比如 你的应用在"www.test1.com"上面,你想从"www.test2.com"上面加载数据,这样是无法加载的。 怎么做呢? 在phph文件头部加上
2016-07-21 10:23:25
27138
1
转载 git
http://w3cschool.codecloud.net/git/git-remote-operating.html#git-remote-operating?ref=myread
2016-07-21 10:12:55
276
原创 C++获取系统时间
#include #include using namespace std; void main() { tm *year; //年 tm *month; //月 tm *day; //日 tm *hour; //时 tm *minute; tm *second; time_t t; t = time(0); year = localtime(&t
2015-09-08 10:40:47
332
原创 C++链表插入节点
#include using namespace std; struct node { int data; node * next; }; int main() { node *head,*p,*q,*s; head=p=q=s=NULL; int i,j,k,n; cin>>n; q=new node; for (i=1;i { s=new node; cin>>s-
2015-04-21 17:41:04
3120
原创 C++动态存储的应用
数组名是常量指针,不允许进行修改。 例如 char a[20]; char b[20]; cin>>a; //b=a; 错误,无法这样赋值,因为b是一个常量指针,也就是说b是一个无法修改的地址; 但是,运用动态存储可以解决这个问题。 char * a; a= new char[20]; //动态分配长度为20的字符型数组; cin>>a; b= new char[20];
2015-04-20 20:49:31
447
空空如也
手机电脑连同一个局域网,用wampserver如何实现让手机访问电脑中的网站
2015-06-18
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅