码迷,mamicode.com
首页 > 2015年01月30日 > 全部分享
ExtJs之列表常用CRUD
前端代码: Ext.onReady(function(){ Ext.define('Person', { extend: 'Ext.data.Model', fields: [{name: 'id', type: 'int', useNull: true }, 'email', 'first', 'last'], va...
分类:Web程序   时间:2015-01-30 09:12:49    阅读次数:158
YT14-HDU-A+B(高精度小数)
Problem Description 话说,经过了漫长的一个多月,小明已经成长了许多,所以他改了一个名字叫“大明”。 这时他已经不是那个只会做100以内加法的那个“小明”了,现在他甚至会任意长度的正小数的加法。 现在,给你两个正的小数A和B,你的任务是代表大明计算出A+B的值。 Input 本题目包含多组测试数据,请处理到文件结束。 每一组测试数据在一行里面包含两...
分类:其他好文   时间:2015-01-30 09:11:28    阅读次数:148
100.Same Tree
#pragma once #include #include using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; bool isSameTree(TreeNode...
分类:其他好文   时间:2015-01-30 09:11:06    阅读次数:214
136.Single Number
Given an array of integers,every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement itwithout using extra m...
分类:其他好文   时间:2015-01-30 09:10:45    阅读次数:247
104.Maximum Depth of Binary Tree
Given a binary tree, findits maximum depth. The maximum depth is thenumber of nodes along the longest path from the root node down to the farthestleaf node.   可用递归,效率低。 这里用类似层次遍历的算法。设置一个队列和两个int变量...
分类:其他好文   时间:2015-01-30 09:10:56    阅读次数:261
171.Excel Sheet Column Number
Related toquestion Excel Sheet Column Title Given a columntitle as appear in an Excel sheet, return its corresponding column number. For example:     A-> 1     B-> 2     C-> 3    ...     Z-> ...
分类:其他好文   时间:2015-01-30 09:10:45    阅读次数:205
122.Best Time to Buy and Sell Stock II
Say you have an array for which the ith element isthe price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as manytransactions as you like (ie, buy one an...
分类:其他好文   时间:2015-01-30 09:11:13    阅读次数:176
HDU 2767 强连通缩点
如A能证明B ,就建一条有向边A->B。对于一个能互相证明的一个集合,必然每个2个点都能相互到达,这样的一个集合就是一个强连通集合。我们可以把他们看成一个点,剩下的就是一个DAG图了。 如要都能相互到达,每个点必然出度 >=1, 入度>1 .。所以统计有多少没有入度的点和多少没有出度的点,他们中最大的就是需要添加的边了。 VIEW CODE #include #include #include...
分类:其他好文   时间:2015-01-30 09:10:52    阅读次数:203
大小端的独特判定方法
看见这个判定方法很特别,收集了~ int i=1; char *p=(char *)&i; if(*p==1) printf("1"); else printf("2");        大小端存储问题,如果小端方式中(i占至少两个字节的长度)则i所分配的内存最小地址那个字节中就存着1,其他字节...
分类:其他好文   时间:2015-01-30 09:11:30    阅读次数:183
创建tabBarControllers视图控制器的方法
//数组中放各个视图控制器的类名 NSArray *controllersName = [NSArray arrayWithObjects:@"NewsViewController",@"MarketViewController",@"VideoViewController",@"PictureViewController",@"SettingViewController",nil]; NSS...
分类:其他好文   时间:2015-01-30 09:11:31    阅读次数:171
UICollectionViewController使用问题之UICollectionViewFlowLayout
1.  问题描述: 最近在做项目的时候,用到了UICollectionViewController控制器,但是在显示数据的时候,出现了如下的警告信息: “ 2015-01-28 21:55:17.790 Demo[636:9351] the behavior of the UICollectionViewFlowLayout is notdefined because: 2015-...
分类:其他好文   时间:2015-01-30 09:08:30    阅读次数:132
HDU 1728 逃离迷宫 DFS+标记转弯数+优化
逃离迷宫。一晚上的青春没了。...
分类:其他好文   时间:2015-01-30 09:10:42    阅读次数:237
Windows RT 应用程序开发介绍培训的讲义
http://www.cnblogs.com/lxconan/archive/2012/09/09/2677957.html 最近从架构的角度做了一个 Windows 8 下 Metro Style 应用程序开发介绍的讲座。以下是讲稿。 如有问题欢迎指正。 下载地址: 幻灯片附加说明 1          概述 这篇的标题叫做Windows RT Introduction而非W...
分类:Windows程序   时间:2015-01-30 09:09:42    阅读次数:248
2015.1.29试题笔记
设在内存中有P1,P2,P3三道程序,并按照P1,P2,P3的优先级次序运行,其中内部计算和IO操作时间由下表给出(CPU计算和IO资源都只能同时由一个程序占用):P1:计算60ms---》IO 80ms---》计算20ms P2:计算120ms---》IO 40ms---》计算40ms P3:计算40ms---》IO 80ms---》计算40ms 并行完成三道程序比单道运行节省的时间是(160m...
分类:其他好文   时间:2015-01-30 09:08:09    阅读次数:262
COM编程入门不得不看的文章:第二部分 深入COM服务器
原文:http://www.codeproject.com/Articles/901/Introduction-to-COM-Part-II-Behind-the-Scenes-of-a         本文为刚刚接触COM的程序员提供编程指南,解释COM服务器内幕以及如何用C++编写自己的接口(前一篇博文主要是COM编程的入门:COM编程入门不得不看的文章 :第一部分 什么是COM,如...
分类:其他好文   时间:2015-01-30 09:09:31    阅读次数:402
COM组件设计与应用(一)——起源及复合文件
本文摘自:http://blog.vckbase.com/teacheryang/archive/2005/06/27/8883.html 一、前言   公元一九九五年某个夜黑风高的晚上,我的一位老师跟我说:“小杨呀,以后写程序就和搭积木一样啦。你赶快学习一些OLE的技术吧......”,当时我心里就寻思 :“开什么玩笑?搭积木方式写程序?再过100年吧......”,但作为一名听话的...
分类:其他好文   时间:2015-01-30 09:08:58    阅读次数:234
COM组件设计与应用(二)——GUID和接口
本文摘自:http://blog.vckbase.com/teacheryang/archive/2005/06/27/8884.html 一、前言   书接上回,话说在 doc(Word) 复合文件中,已经解决了保存 xls(Excel) 数据的问题了。那么,接下来又要解决另一个问题:当 WORD 程序读取复合文件,遇到了 xls 数据的时候,它该如何启动 Excel 呢?启动后...
分类:其他好文   时间:2015-01-30 09:07:20    阅读次数:380
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!