做Linux方面也有三个多月了,对代码中的有些结构一直不是非常明确,比方platform_device与platform_driver一直分不清关系。在网上搜了下,做个总结。两者的工作顺序是先定义platform_device -> 注冊 platform_device->,再定义 platfor....
分类:
其他 时间:
2015-03-28 15:43:47
收藏:
0 评论:
0 赞:
0 阅读:
220
Git查看、删除、重命名远程分支和tag发表于11/17/2012作者zrong—5 条评论 ↓ 84,557 次查看本站文章除注明转载外,均为本站原创或者翻译。本站文章欢迎各种形式的转载,但请18岁以上的转载者注明文章出处,尊重我的劳动,也尊重你的智商;本站部分原创和翻译文章提供markdown格...
分类:
其他 时间:
2015-03-28 15:43:38
收藏:
0 评论:
0 赞:
0 阅读:
115
static void Main(string[] args) { while (true) { int x, y,z; string a, b,c; Random r=new Random();//这个是用的随机数随机生成,并且利用switch case赋予x,y,z成为"剪刀"石头""布""的含...
分类:
其他 时间:
2015-03-28 15:43:28
收藏:
0 评论:
0 赞:
0 阅读:
94
static void Main(string[] args) { while (true) { string a; Console.WriteLine("请问你有房吗:"); a = Console.ReadLine(); if (a == "有") { Console.WriteLine("请....
分类:
其他 时间:
2015-03-28 15:43:07
收藏:
0 评论:
0 赞:
0 阅读:
186
前面写了一篇《带参数的CLR存储过程》http://www.cnblogs.com/insus/p/4373605.html ,如果我们需要创建一个带OUTPUT返回值。实现它,可以先了解一下C#的OUT关键词out (C# Reference)打开刚才前面我们写好的SQL DataBase pro...
分类:
其他 时间:
2015-03-28 15:42:37
收藏:
0 评论:
0 赞:
0 阅读:
142
我就不屁话,能一张图就解决的就不说话了2015-03-28 14:53:24,440 [10] ERROR log - System.NotSupportedException: LINQ to Entities 不支持 LINQ 表达式节点类型“ArrayIndex”。 在 System.Da.....
分类:
其他 时间:
2015-03-28 15:42:27
收藏:
0 评论:
0 赞:
0 阅读:
255
两年多的时间没有摸PHP了,为了不让自己忘记,加上最近项目不是很忙,就尝试着安装了一下Laravel,结果发现Laravel 5.0安装后,页面空白且不报错,纠结好久还是没能成功,于是尝试着安装4.2版本,结果成功了。首先简单的在虚拟机上(CentOS 6.5)安装了一下php环境:1、安装mysq...
分类:
其他 时间:
2015-03-28 15:40:47
收藏:
0 评论:
0 赞:
0 阅读:
486
1 #include 2 3 int main() { 4 int my_pid = 0; 5 __asm__ __volatile__ ( 6 "mov $20, %%eax\n\t" 7 "int $0x80\n\t" 8 :...
分类:
其他 时间:
2015-03-28 15:40:07
收藏:
0 评论:
0 赞:
0 阅读:
190
static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Green; Console.Clear(); while (true) { Console.WriteLine("求方程式ax²+bx=c=0的根的情况...
分类:
其他 时间:
2015-03-28 15:39:27
收藏:
0 评论:
0 赞:
0 阅读:
223
平面图的最小割转化为对偶图的最短路(资料:两极相通——浅析最大最小定理在信息学竞赛中的应用) ,然后DIJKSTRA就OK了.-------------------------------------------------------------------------------#include...
分类:
其他 时间:
2015-03-28 15:39:07
收藏:
0 评论:
0 赞:
0 阅读:
204
题目:http://acm.hdu.edu.cn/showproblem.php?pid=2553dfs的题 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int N=20;...
分类:
其他 时间:
2015-03-28 15:38:47
收藏:
0 评论:
0 赞:
0 阅读:
194
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3033After months of hard working, Iserlohn finally wins awesome amount of scholarship. As a great zealo...
分类:
其他 时间:
2015-03-28 15:38:37
收藏:
0 评论:
0 赞:
0 阅读:
211
定义符号常量 当我们不止一次用到某个符号常量时,常选择对符号变量进行定义,这样就能当成一般常量来用. 1 #include 2 #include 3 #define PI 3.1415926 4 int main() 5 { 6 double r,ar...
分类:
其他 时间:
2015-03-28 15:38:27
收藏:
0 评论:
0 赞:
0 阅读:
223
题目:Given an array of sizen, find the majority element. The majority element is the element that appears more than? n/2 ?times.You may assume that the ...
分类:
其他 时间:
2015-03-28 15:38:07
收藏:
0 评论:
0 赞:
0 阅读:
98
1 #include 2 #include 3 #include 4 5 int main(void) 6 { 7 char buf[10]; 8 //memset(buf, 0, 100); 9 //strcpy(buf, "hello world\n");10 ...
分类:
其他 时间:
2015-03-28 15:37:57
收藏:
0 评论:
0 赞:
0 阅读:
212
using System;namespace Frank{ public class Sample { public static void Main(string[] args) { var name = "Bugs Bunny"; ...
分类:
其他 时间:
2015-03-28 15:37:37
收藏:
0 评论:
0 赞:
0 阅读:
163
测试框架什么是测试框架测试框架是一组自动化测试的规范、测试脚本的基础代码,以及测试思想、惯例的集合。可用于减少冗余代码、提高代码生产率、提高代码重用性和可维护性。测试框架出现的最终目的是花少量的资源来完成尽可能多的测试任务,所以测试框架的建立以及框架的重用性方面是最值得测试人员深入探究的地方。测试框...
分类:
其他 时间:
2015-03-28 15:37:27
收藏:
0 评论:
0 赞:
0 阅读:
108
目标:将新创建的文件保存在 Tomcat 服务器对应的文件夹下在 Servlet 的主要代码如下: private ServletContext sc; private String filename; //保存文件名 @Override public void init(ServletConfig...
分类:
其他 时间:
2015-03-28 15:37:17
收藏:
0 评论:
0 赞:
0 阅读:
209
attach($file); } public function __destruct() { $this->detach(); } /** * attach, 挂接一个队列文件 */ public function a...
分类:
其他 时间:
2015-03-28 15:36:47
收藏:
0 评论:
0 赞:
0 阅读:
173
【费马定理的应用】1、例题一。 2、质数。 3、例题五。 4、例题六。 5、例题七。
分类:
其他 时间:
2015-03-28 15:36:27
收藏:
0 评论:
0 赞:
0 阅读:
236