1 package Lingxing; 2 3 public class lingxing { 4 5 public static void main(String[] args) 6 { 7 for (int h=0; h=h; l--)10 ...
分类:
其他好文 时间:
2015-10-04 20:51:52
阅读次数:
303
堆的时间复杂度是建O(n),时间复杂度为堆排序O(NLogN),细节如以下的算法看到:#include using namespace std;void swap(int &i,int &j){ int temp=i; i=j; j=temp;}void shiftDown(int...
分类:
编程语言 时间:
2015-10-04 19:31:58
阅读次数:
162
#include#include#includeusing namespace std;void pr(char *str){ cout s1(strlen(str)); vector s2(strlen(str)); int i=0; while(str[i]!='\0')...
分类:
其他好文 时间:
2015-10-04 15:56:29
阅读次数:
224
package nothh;public class mmm { public static void main(String[] args) { // TODO Auto-generated method stub //4到1的阶乘之和 int x ...
分类:
其他好文 时间:
2015-10-04 13:36:15
阅读次数:
198
传感器实现代码:#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do...
分类:
移动开发 时间:
2015-10-04 12:18:14
阅读次数:
192
0、得到焦点的时候,作一些处理public class AbcActivity extends Activity implements OnFocusChangeListener{ @Override public void onFocusChange(View v, boolean has...
分类:
其他好文 时间:
2015-10-04 11:01:37
阅读次数:
127
href="要跳转目标链接"; href="#";当前页面不跳转(返回顶部) href="###";当前页面不跳转(同时不回到顶部) href="javascript:;";当前页面不跳转,返回空 href="javscript:void(0);";当前页面不跳转,无返回值 href="javasr...
分类:
Web程序 时间:
2015-10-04 00:22:48
阅读次数:
282
iOS8数字键盘加左下角完成button的核心代码如下面:- (void)addDoneButtonToNumPadKeyboard{ UIButton *doneButton = [UIButton buttonWithType:UIButtonTypeCustom]; if (sys...
分类:
移动开发 时间:
2015-10-03 19:30:13
阅读次数:
226
这是使用wxsmith设计界面时的情况,如果用纯代码写的界面,关闭按钮就很奇怪地有效道听途说,窗口的关闭是由一个方法控制着。大概是这样的:void PlainFrame::OnClose(wxCloseEvent & event){}网上给出的解决方法大概是这样:void PlainFrame::O...
分类:
其他好文 时间:
2015-10-03 15:36:25
阅读次数:
226
第一个是在头文件部分的代码是学习不变 大多数写自己。class HelloWorld : public cocos2d::CCLayer{public: virtual bool init(); static cocos2d::CCScene* scene(); void me...
分类:
其他好文 时间:
2015-10-03 15:34:46
阅读次数:
210