码迷,mamicode.com
首页 >  
搜索关键字:head    ( 28286个结果
新浪微博开放平台API
关于新浪微博开放平台有很多问题,网上文档写的不是很清楚,授权机制把我给难住了 不清楚怎么回事一直报没有权限 EMAIL给开发人员也没回应偶然尝试到一个方法 States返回了成功 如下代码:1.在head 引用2.Javascript 中 这里的User_id 填写你自己的Userid 如果不知道....
分类:Windows程序   时间:2014-06-29 13:37:42    阅读次数:1173
Convert Sorted List to Binary Search Tree
题目 Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 方法 和有序数组的思想基本一样,将链表进行二分。 TreeNode getBST(ListNode head, int len) { i...
分类:其他好文   时间:2014-06-20 09:46:33    阅读次数:267
XmlHttpRequest 对象的用法
XMLHttpRequest对象可以在不向服务器提交整个页面的情况下,实现局部更新网页。当页面全部加载完毕后,客户端通过该对象向服务器请求数据,服务器端接受数据并处理后,向客户端反馈数据。 XMLHttpRequest 对象提供了对 HTTP 协议的完全的访问,包括做出 POST 和 HEAD 请求...
分类:其他好文   时间:2014-06-07 11:25:42    阅读次数:181
boot/head.S
/* * linux/boot/head.S * * Copyright (C) 1991, 1992 Linus Torvalds *//* * head.S contains the 32-bit startup code. */.text.globl _idt,_gdt,.globl ...
分类:其他好文   时间:2014-06-06 15:11:14    阅读次数:417
自定义网络消息
#define MSG_HEAD_LEN 4//消息头部结构typedef struct tagMsg { //消息类型 u16 type; //消息体长度 u16 length;}TMsg;void receive(SOCKET s){ char buffer[1024*28]; //CServM...
分类:其他好文   时间:2014-06-06 11:25:33    阅读次数:243
用cssText属性批量操作样式
给一个HTML元素设置css属性,如var head= document.getElementById("head");head.style.width = "200px";head.style.height = "70px";head.style.display = "block";这样写太罗嗦了...
分类:Web程序   时间:2014-06-06 08:38:08    阅读次数:277
单链表操作
#include#includetypedef struct Node{ int data; struct Node *next;}LinkList;//就地反转int LinkListRerverse(LinkList *head){ LinkList *q,*p; p = head->next;...
分类:其他好文   时间:2014-06-06 07:35:54    阅读次数:283
链表中的指针运用(利用2个例子来说明)
示例代码注重这里p1的作用以下代码是用尾插法添加结点#include #include #define N sizeof (STU)typedef struct stu{ int num; char name[20];} STU, * PSTU;PSTU creat (PSTU head) ...
分类:其他好文   时间:2014-06-05 19:49:50    阅读次数:351
leetcode--Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:其他好文   时间:2014-06-05 13:41:44    阅读次数:231
LeetCode Swap Nodes in Pairs
class Solution {public: ListNode *swapPairs(ListNode *head) { ListNode *a = NULL; ListNode *b = NULL; ListNode *tail = NULL; ...
分类:其他好文   时间:2014-06-05 12:55:24    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!