码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
菱形代码
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
3*(4+6)-7 # 用代码实现这个运算表达式,仅包含逆波兰式部分,算术结果部分未写出
#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
iOS UI进阶-5.0 蓝牙/加速计/传感器
传感器实现代码:#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do...
分类:移动开发   时间:2015-10-04 12:18:14    阅读次数:192
监听EditText
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="###";当前页面不跳转(同时不回到顶部) href="javascript:;";当前页面不跳转,返回空 href="javscript:void(0);";当前页面不跳转,无返回值 href="javasr...
分类:Web程序   时间:2015-10-04 00:22:48    阅读次数:282
iOS8数字键盘加左下角完成button
iOS8数字键盘加左下角完成button的核心代码如下面:- (void)addDoneButtonToNumPadKeyboard{ UIButton *doneButton = [UIButton buttonWithType:UIButtonTypeCustom]; if (sys...
分类:移动开发   时间:2015-10-03 19:30:13    阅读次数:226
关于wxwidgets图形界面的关闭窗口的按钮无效的解决办法
这是使用wxsmith设计界面时的情况,如果用纯代码写的界面,关闭按钮就很奇怪地有效道听途说,窗口的关闭是由一个方法控制着。大概是这样的:void PlainFrame::OnClose(wxCloseEvent & event){}网上给出的解决方法大概是这样:void PlainFrame::O...
分类:其他好文   时间:2015-10-03 15:36:25    阅读次数:226
初学者cocos2dx 写2048 为了和大家一起分享
第一个是在头文件部分的代码是学习不变 大多数写自己。class HelloWorld : public cocos2d::CCLayer{public: virtual bool init(); static cocos2d::CCScene* scene(); void me...
分类:其他好文   时间:2015-10-03 15:34:46    阅读次数:210
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!