首页 > 2015年04月01日 > 全部分享
JAVA学习笔记(四十五) - 布局管理器
FlowLayout流式布局管理器/* * FlowLayout流式布局管理器 */ public class Test03 { public static void main(String[] args) { Frame frame=new Frame("My Frame"); Button btn1=new Button("按钮1");...
分类:编程语言   时间:2015-04-01 09:32:54    收藏:0  评论:0  赞:0  阅读:240
在类的头文件中尽量少引入其他头文件 <<Effective Objective-C>>
与C 和C++ 一样,Objective-C 也使用“头文件”(header file) 与“实现文件”(implementation file)来区隔代码。用Objective-C 语言编写“类”(class)的标准方式为:以类名做文件名,分别创建两个文件,头文件后缀用.h,实现文件后缀用.m。创建好一个类之后,其代码看上去如下所示: // EOCPerson.h #import <Foun...
分类:其他   时间:2015-04-01 09:32:44    收藏:0  评论:0  赞:0  阅读:179
JAVA学习笔记(四十六)- 内部类详解
成员内部类 /* * 内部类 * 定义在另一个类中的类,称为内部类Inner Class * 包含内部类的类,称为外部类Outer Class * * 应用场合:在窗体程序中进行事件处理 * * 分类: * 成员内部类 * 局部内部类 * 静态内部类 * 匿名内部类 * * 成员内部类 * 1.在外部类中访问内部类,可以访问内部类中的所有成员,包含private修饰...
分类:编程语言   时间:2015-04-01 09:32:24    收藏:0  评论:0  赞:0  阅读:251
【SICP练习】150 练习4.6
练习4-6原文Exercise 4.6. Let expressions are derived expressions, because (let (( ) … ( )) ) is equivalent to ((lambda ( … ) ) ) Implement a syntactic transformation let->combination that reduces...
分类:其他   时间:2015-04-01 09:32:14    收藏:0  评论:0  赞:0  阅读:110
Median of Two Sorted Arrays--LeetCode
题目: There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). 思路:这道题比较直接的想法就是用Merge Sort...
分类:其他   时间:2015-04-01 09:32:04    收藏:0  评论:0  赞:0  阅读:98
LeetCode125 Sum Root to Leaf Numbers
LeetCode125 Sum Root to Leaf Numbers...
分类:其他   时间:2015-04-01 09:31:54    收藏:0  评论:0  赞:0  阅读:89
(五)Unity5.0新特性------unity中编写脚本
出处:http://blog.csdn.net/u010019717author:孙广东      时间:2015.3.32之前的Unity脚本我们利用Mono(WinRT 在Windows Store Apps 和Windows Phone上) 使用 C# ,获得第三方库和接近本机性能的易用性。然而,有一些挑战:C# 运行时性能仍然落后于 C/c + +最新和最好的.NET 语言和运行时功能...
分类:编程语言   时间:2015-04-01 09:31:44    收藏:0  评论:0  赞:0  阅读:134
??项目1-三角形类的构造函数(1)
【项目1-三角形类的构造函数】   设计三角形类,通过增加构造函数,使对象在定义时能够进行初始化,可以由下面的类声明开始,需要自己实现相关的成员函数,以及增加要求的构造函数 class Triangle { public: double perimeter();//计算三角形的周长 double area();//计算并返回三角形的面积 void showMe...
分类:其他   时间:2015-04-01 09:31:34    收藏:0  评论:0  赞:0  阅读:190
(六)Unity5.0新特性------新动画功能
??unity 5.0 中的新动画功能这里是你可以期待的新动画功能快速概述 !State Machine Behaviours状态机行为在Unity 5 中,你会能够将StateMachineBehaviour 脚本添加到您的states,当played状态时能接收callbacks回调:?OnStateEnter?OnStateUpdate?OnStateExit?OnStateMove?OnS...
分类:编程语言   时间:2015-04-01 09:31:24    收藏:0  评论:0  赞:0  阅读:208
项目1-三角形类的构造函数(2)
【项目1-三角形类的构造函数】   设计三角形类,通过增加构造函数,使对象在定义时能够进行初始化,可以由下面的类声明开始,需要自己实现相关的成员函数,以及增加要求的构造函数 class Triangle { public: double perimeter();//计算三角形的周长 double area();//计算并返回三角形的面积 void show...
分类:其他   时间:2015-04-01 09:31:14    收藏:0  评论:0  赞:0  阅读:116
BZOJ 1135 POI2009 Lyz 线段树+Hall定理
题目大意:有1~n型号的滑冰鞋,每种有k双,一个x号脚的人只能适应[x,x+d]号滑冰鞋,每次增加一些x号脚的人或减少一些x号脚的人,问能否匹配 http://m.blog.csdn.net/blog/u012732945/40707885 OTZ 这题我居然还能贡献一个WA真是醉了 #include #include #include #include #define M 2...
分类:其他   时间:2015-04-01 09:31:04    收藏:0  评论:0  赞:0  阅读:152
HDU 2089 不要62【数位板】
Description: 不吉利的数字为所有含有4或62的号码。输出n-m之间的吉利数的个数! Analyse: 数位dp的原理:如果A 对于数位dp板,重点是参数的设置! CODE: #include #include #include #include #include #include #include #include #include #include #include...
分类:其他   时间:2015-04-01 09:31:00    收藏:0  评论:0  赞:0  阅读:136
Qt学习记录,QSortFilterProxyModel
QSortFilterProxyModel主要可实现按表的标头实现自动排序,及根据过滤条件过滤,具体的demo可以查看QT自带的Item views系列。我的例子还没加上过滤。add_da(QAbstractItemModel* model,int &ID,const QString& Description,const QString& Type){ model->insertRow(0)...
分类:其他   时间:2015-04-01 09:30:44    收藏:0  评论:0  赞:0  阅读:147
【SICP练习】151 练习4.7
练习4-7原文Exercise 4.7. Let* is similar to let, except that the bindings of the let variables are performed sequentially from left to right, and each binding is made in an environment in which all of the...
分类:其他   时间:2015-04-01 09:30:27    收藏:0  评论:0  赞:0  阅读:226
Android在WebView上构建Web应用程序
如果你想实现一个Web应用(或仅仅是一个网页)作为你应用中的一部分,你可以使用WebView来实现它。WebView是Android的View类的扩展,它允许你显示一个网页作为Activity布局的一部分。它不包含成熟的浏览器的一些功能,例如导航控制或输入栏。默认情况下,WebView显示一个网页。 一个使用WebView的很普遍的场合是当你想要在应用中提供需要时常更新的信息时,例如用户协议或用户手册。在Android应用当中,你能创建一个Activity它包含一个WebView,然后使用它...
分类:移动平台   时间:2015-04-01 09:30:14    收藏:0  评论:0  赞:0  阅读:139
How to become a proficient Python programmer - 如何成为Python高手
How to become a proficient(熟练的) Python programmer 如何成为Python高手 Spoiler: This post is primarily gonna be an excerpt(摘录) of my bookmarks collection. That’s because more intelligent men than me h...
分类:编程语言   时间:2015-04-01 09:30:04    收藏:0  评论:0  赞:0  阅读:327
【LeetCode OJ】Merge Two Sorted Lists
题目:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. struct ListNode { int val; ListNode *next; ListNo...
分类:其他   时间:2015-04-01 09:29:54    收藏:0  评论:0  赞:0  阅读:147
【LeetCode从零单排】No121 Best Time to Buy and Sell Stock
题目Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), d...
分类:其他   时间:2015-04-01 09:29:44    收藏:0  评论:0  赞:0  阅读:194
Java算法--串的简单处理
题目如下:串的处理 在实际的开发工作中,对字符串的处理是最常见的编程任务。 本题目即是要求程序对用户输入的串进行处理。具体规则如下: 1. 把每个单词的首字母变为大写。 2. 把数字与字母之间用下划线字符(_)分开,使得更清晰 3. 把单词中间有多个空格的调整为1个空格。 例如: 用户输入: you and me what cpp2005program 则程序输出: Y...
分类:编程语言   时间:2015-04-01 09:29:34    收藏:0  评论:0  赞:0  阅读:171
第四周(带参数构造函数)
/* *copyright(c) 2015,烟台大学计算机学院 *All rights reserved。 *文件名称:第四周(带参数构造函数) *作者:王忠 *完成日期:2015.4.1 *版本号:v1.0 * *问题描述:输入三角形三边,求出周长面积 *输入描述:无 *程序输出:输出周长面积 #include #include using namespace st...
分类:其他   时间:2015-04-01 09:29:24    收藏:0  评论:0  赞:0  阅读:173
2283条   上一页 1 ... 95 96 97 98 99 ... 115 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!