以下记载了在初学结构体时犯下的一些错误。先来一些杂识struct f{ string name;};struct students{ int num; string name; students *next; students friends;// f fri;}...
分类:
其他好文 时间:
2014-07-12 13:14:01
阅读次数:
206
String ProblemTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1492Accepted Submission(s): 662Probl...
分类:
其他好文 时间:
2014-07-11 22:25:45
阅读次数:
191
默认情况下,C#中的伪随机数生成器Random是根据系统时间来设置其种子的。Random rd = new Random();int randNum=rd.next(1,101)若我们采用默认的方式,对Random进行初始化的时候不赋予任何参数,其随机种子便采用系统时间。如果我们用循环一次生成多个随...
分类:
其他好文 时间:
2014-07-09 15:16:34
阅读次数:
191
1 点击图标。2 点击后会出弹出窗口,选择。3 选择后会进入界面由于我们是做ios的应用所以选择 ios Application 中的 single viewApplication4 单击next 会出现界面 产品名称自己填写 语言我们用oc语言写程序,所以选择 Objective—C。产品类型看你...
分类:
移动开发 时间:
2014-07-09 15:03:47
阅读次数:
197
LCA tarjan 的离线算法
#include
#include
#include
using namespace std;
const int maxn = 40010;
int first[maxn], head[maxn], cnt, sum;
struct edge
{
int u, v, w, next;
}e[maxn*2], qe[maxn], Q[maxn];
int...
分类:
其他好文 时间:
2014-07-09 10:23:35
阅读次数:
256
//函数原型:版本linux-3.0.8
struct task_struct *__switch_to(structtask_struct *,
struct thread_info *, struct thread_info *);
#define switch_to(prev,next,last) ...
分类:
其他好文 时间:
2014-07-09 09:28:09
阅读次数:
362
Android Studio在设置完Keymap到Eclipse后,原来Eclipse有一个很好使的快捷键Ctrl+K不灵了,在Eclipse中,你只要
选中一个变量,然后Ctrl+K,光标就会自动定位到下一个变量被使用的地方,这个快捷键的名称其实就是“Find+Next”。
那为啥我都设置Keymap到Eclipse了,然后打开快捷键界面,看到“Find+Next”的快捷键就是Ctr...
分类:
移动开发 时间:
2014-07-08 21:03:08
阅读次数:
272
1、 下载SVN 插件
打开 Eclipse , 菜单栏 Help -> Install New Software
在 Work with 这里添加网址 : http://subclipse.tigris.org/update_1.8.x/
回车后即会出现如下两个选项,全部勾选
一路next , 到安装完毕,中间会弹出个警告的, 不用管它,点击 “ ok ...
分类:
系统相关 时间:
2014-07-08 18:32:23
阅读次数:
379
def reverse(head):
if head == None or head.next == None:
return head
psuhead = ListNode(-1)
while head:
nexthead = head.next
head.next = psuhead.next
psuhead.next = head
head = nexthead
...
分类:
其他好文 时间:
2014-07-08 15:27:58
阅读次数:
183
#include<iostream>
usingnamespacestd;
structnode{
intd;
structnode*next;
};//定义结点
node*build1()//头插法构造单链表
{
node*p;//指向新建结点
node*head;//头指针
head=NULL;
p=head;
intx;
cin>>x;
while(x!=-1)
{
p=newnode;
p->d=x;
p-&g..
分类:
其他好文 时间:
2014-07-08 09:06:06
阅读次数:
220