摘要: #include "stdafx.h" #include //创建一个节点,data为value,指向NULL Node* Create(int value){ Node* head = (Node*)malloc(sizeof(Node)); head->data = value; head->next = NULL; return head; } //销毁链... 阅读全文
posted @ 2017-10-27 11:26 汪昕 阅读(14619) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define LIST_INIT_SIZE 100 #define LISTINCREMENT 10 // TODO: 在此处引用程序需要的其他头文件 // typedef struct{ int *elem; int length;//当前长度 int listsize;//当前分配的存储容量 }SqList; //新建线性... 阅读全文
posted @ 2017-10-26 21:15 汪昕 阅读(5055) 评论(0) 推荐(0) 编辑
摘要: 注意,laravel 对密码使用Hash加密,检查一下数据库user表中的password有没有Hash加密过 没仔细看文档坑死我了 阅读全文
posted @ 2017-04-06 20:58 汪昕 阅读(1437) 评论(0) 推荐(0) 编辑
摘要: 今天做一个处理上传文件的接口时碰到这样一个问题, 用的是element-ui的上传组件,但是上传失败, 抓包一看返回的是 重新载入页面以获取源代码 http://*/upload.php 网上搜了一下,原来php处理跨域访问要加上头信息; upload.php //首先允许跨域访问,如果是*代表所有 阅读全文
posted @ 2017-03-28 19:45 汪昕 阅读(1452) 评论(0) 推荐(0) 编辑
摘要: 项目目录/public/index.php/接你设置的路由 比如设置了 $app->get('/test', function () use ($app) { return $app->version();}); 就是 项目目录/public/index.php/test 阅读全文
posted @ 2017-03-28 10:10 汪昕 阅读(2933) 评论(0) 推荐(0) 编辑
摘要: 解决:进入 public/index.PHP 将 $app->run(); 修改成下面的: $request = Illuminate\Http\Request::capture(); $app->run($request); 亲测可用:) 阅读全文
posted @ 2017-03-27 22:24 汪昕 阅读(2412) 评论(0) 推荐(0) 编辑