自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(66)
  • 资源 (2)
  • 收藏
  • 关注

原创 关于面向对象的瞎扯

封装:既然,

2014-07-25 00:32:55 641

原创 [Practice]二叉查找树中的后继节点

题目:给

2014-07-17 00:00:05 156

原创 [Practice]二进制的奇偶位互换

题目:

2014-07-16 23:53:05 712

原创 [Practice]找出丢失的一个数

题目:提供一个函数getBit()

2014-07-16 23:39:03 628

原创 [Practice]对栈排序

题目:将一个栈升序排序

2014-07-16 23:33:46 679

原创 理解Dijistra算法的几个关键点

可以枚举 最优化结构,重叠子问题

2014-07-10 13:57:45 690

原创 [Practice]给定链表的头指针和结点指针,在O(1)时间删除该结点

题目: 给定链表的头指针和一个结点指针,在O(1)时间删除该结点。链表结点的定义如下:struct ListNode{int m_nKey;ListNode* m_pNext;};分析:

2014-06-12 22:53:13 656

原创 [Practice]运算器

加减乘除与或非、异或

2014-06-12 20:34:15 652

原创 [Practice]求二进制位串中1的个数

如题,常规做法暂不说。妙解:1、

2014-06-10 22:29:13 613

原创 [Practice]带最值函数的栈

题目:自定义栈的数据结构,push要求添加一个min函数,能够得到栈的最小元素。要求时间复杂度都是O(1)。

2014-06-08 14:22:56 613

原创 [Practice]求和为100的组合个数

题目:biancheng

2014-06-08 10:24:59 1251

原创 Clock for Android

闹钟应用http://download.youkuaiyun.com/detail/tbz888/7372107

2014-05-19 23:01:16 553

原创 [学习笔记]UserInterface/Layouts

A layout definesthe visual structure for a user interface, such as the UI for an activity or appwidget. You can declare a layout in two ways:       布局定义对用户界面的可视化结构,比如activity或 app widget·     

2014-05-13 12:04:44 650

原创 [学习笔记]User Interface/Overview

参考资料:A View is an object that draws something on the screen that theuser can interact with. A ViewGroup is an object that holds otherView (and ViewGroup)objects in order to define the layo

2014-05-07 22:24:14 636

原创 [学习笔记]Device Compatibility

参考资料: http://developer.android.com/guide/practices/compatibility.html

2014-05-05 20:07:21 436

原创 [学习笔记]Application Fundamentals

APK: an Androidpackage, which is an archive file with an .apk suffix       APK:一个以.apk为后缀的带存档的Android包 Once installed on a device, each Android app lives in itsown security sandbox:-The system

2014-05-05 00:02:23 473

原创 [学习笔记]Introduction

Android provides a rich application framework that allowsyou to build innovative apps and games for mobile devices in a Java languageenvironment. Android提供一个丰富的框架,允许你在Java语言环境下创建革新性的应用或游戏 Androi

2014-05-05 00:01:19 408

原创 XML之概述

参考:http://www.w3school.com.cn/xml/xml_intro.asp

2014-05-01 23:49:25 393

原创 [Homework]数字电路设计,显示学号后四位

总结:必须认真看说明书,各种坑。

2014-04-29 21:18:30 4640

原创 map遍历

// 1.KeySet Iterator item = map.keySet().iterator(); while(item.hasNext()){ String key = item.next(); String value = map.get(key); } for(String key: map.keySet()){ String value = m

2014-04-20 14:47:22 91

转载 [Practice]冒泡排序的有趣实现

来源:http://blog.youkuaiyun.com/morewindows/article/details/6657829本文是对其理解#include using namespace std;//常规,假定序列中不存在有序的void bubble1(int arr[], int n){ for (int i = 0; i < n-1; ++i) for (in

2014-04-17 10:36:45 614

原创 [Practice]关于数字电路的一个问题

假定有7个输入端口,有2种输入状态:1(有效)、0(无效)。端口编号分别为0~7,编号越大优先级越高,请设计一个电路来筛选出有效端口中优先级最高的那一个。(输出端口也是有7个,端口编号分别为0~7。每次输出都只有一个端口有效,其余无效,而这个有效端口的编号为筛选结果)个人做法:有效端口中优先级最高的那个端口,一定不存在优先级更高的有效端口

2014-04-15 21:42:14 618

原创 [Practice]算术表达式

import java.util.Scanner;class A{ public static void main(String[] args) { Scanner in = new Scanner(System.in); int times = in.nextInt(); int sum = 0;

2014-04-09 20:08:46 632

原创 [Practice]快速幂求模递归法

Practice

2014-04-07 22:48:33 1182

转载 [Pratice]简单版桶排序

转自 http://ahalei.blog.51cto.com/4767671/1362789#include #include using namespace std;//just demo, so there isn't more functionint main(int argc, char const *argv[]){ int value[] = {9, 1,

2014-04-02 21:32:43 658

转载 [Pratice]猜生日(书中实例)

原理:通过5个集合来确定二进制的每一个位,从而确定5位二进制数对应的十进制(2^5-1 = 31)#include #include using namespace std;char set[][53] = { "16 17 18 19\n 20 21 22 23\n 24 25 26 27\n 28 29 30 31", " 8 9 10 11\n 12 13 14

2014-03-24 23:05:54 726

原创 个人对C++多态的看法

前言:实例往往更能让人接受,只有接受了,才有更好地运用。本文未必准确,只是帮助理解,若有谬误,望指正。实例:有一天,我很无聊,打算外出游玩。于是,我在朋友圈发“若谁有空,请联系我,一同游玩。”同学的电话来了,我与之外出,去商业区,吃、MOIVE、K歌。父母的电话来了,我与之外出,去公园,散步、谈心。稍微抽象下:f :我.外出(人);//我确定的是

2014-03-05 13:28:21 950 1

原创 [Pratice]八皇后问题

想要真正理解,就实践,身临其境。#include using namespace std;//n皇后的设定值const int COLUMN = 8;int queen[COLUMN];/*判断当前列以上是否冲突,即对角线和列检查 *而行数偏移量与对角线的关系,可以归纳得出 */bool isValid(int row, int col){ for (int i = 1

2014-02-28 23:35:23 654

原创 [自娱自乐]模拟像素打印和位练习

参考文章:http://blog.youkuaiyun.com/sxhelijian/article/details/17167291原理:1、按位打印字符,并用32位整型来压缩.(十六进制表示)2、位操作: 0 & x = 0, 1 | x = 1.  位状态的反转3、轴对称的利用#include using namespace std;//digit tabl

2014-02-19 15:22:13 1092

原创 谈文字教程与视频教程

文字教程:指blog、论坛、书本等文字表达的

2014-02-15 11:50:58 165

原创 [Note]C语言位操作

Bit OperationBackground :  二进制整数,符号位,补码 二进制小数 : 只能精确表示1/2的幂之和的小数 八进制:每个数位对应3个二进制位十六进制:每个数位对应4个二进制位原码:最高位为符号位,0正,1负反码:除符号位外,各位转置(取反)补码:正数的原码&负数的(反码 + 1) 【该编码被计算机采用】 位字段:

2014-02-10 18:52:55 717

原创 [Failed Practice]Suffix Expression

#include #include #include #include #include using namespace std;bool isDigit(char c){ return (c = '0');}const char allOperator[] = "+-*/^^()";bool isOperator(char c){ for (int j = 0;

2014-01-28 13:41:41 277

转载 【转】iOS平台游戏安全之IPA破解原理及防御

原文地址 -> http://danqingdani.blog.163.com/blog/static/186094195201292273453797/在博客上谈过了iOS游戏的内购安全,存档安全及内存安全。其实还有一个很泛滥但被视为鸡肋的问题,即iOS IPA破解问题,因为国内大多数游戏靠内购和广告盈利,游戏安装包也只是在早期象征性的收费,之后就会免费,所以对IPA

2014-01-27 16:55:45 1760

原创 【读书笔记】程序员的数学

Programmer’s Math零的故事——无即是有一、指数法则:a0 =  1 (a!=0); 理解为 n每减一,数变为原来的1/10。,而非n个相乘 二、进制问题按位计算法, 0 的占位作用 逻辑——真与假的二元世界消除自然语言的歧义,做到不重不漏 引用:程序员处于人类和计算机的分界线上。只有做到逻辑性的思考和表达,就不会为常识和感情所困,从而写出

2014-01-25 13:17:20 939

转载 [Practice]Recursion (Continued)

#include #include using namespace std;/* abstract concretization */int pow(int x, int n){ if (!n) return 1; return (x * pow(x, n - 1));}int fib(int index){ if (index < 0) return -1; if (!in

2014-01-24 22:49:53 649

原创 [分析]网上的一段小代码

不是我想出来的,只是转。#include using namespace std;void reverse_print(const char str[]){ if (str == NULL || *str == '\0') return; reverse_print(str + 1); cout << *str;}int main(int argc, char

2014-01-24 22:14:20 575

原创 [Pratice]递归形式的暴力破解。

2014-01-24 17:20:13 751

原创 [题目]链条问题/切木块

Problem:         假定一段长度为i的钢条的价格为pi(I= 1, 2, …), 表格如下   长度i  1    2    3    4    5    6    7     8      9     10  价格pi

2014-01-07 19:50:33 824

原创 [题目]链条问题/切木块

#include #include #include using namespace std;int price_count = 6;bool record[20] = {0};int max_price(int *price, int length){    if (length == 1)    return price[1];    if (len

2014-01-06 22:41:02 106

原创 [Pratice]欺骗_库函数

#include #include using namespace std;template void print(T* p){    int k = 0;    for (int i = 0; p[i]; ++i)    {        cout         ++k;        if (k % 10)            cout

2014-01-06 16:05:58 626

Clock for Android

闹钟小应用,支持今明两天的定时唤醒。 Time out则要求用户摇动手机n次,才停止播放音乐。

2014-05-19

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除