码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
直接插入排序
```#include using namespace std;const int N = 10;int data[] ={6,1,2,7,9,3,4,5,10,8};void directInsertSort(int* data,int n);void printArray(int* data, ... ...
分类:编程语言   时间:2016-05-13 11:44:38    阅读次数:208
简单的冒泡排序法
<!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> -(void) doDesc{ int list[12] = {12,42,21,45,6,13,89,23,48,74,3,32}; for (int i=0; i<=11; i ...
分类:编程语言   时间:2016-05-13 11:29:53    阅读次数:199
After reading a picture than out a picture
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //设置响应文本类型 response.setContentTy ...
分类:其他好文   时间:2016-05-13 11:09:24    阅读次数:129
winform中执行任务,解决未响应界面
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { var count = (int)e.Argument; for (int i = 1; i <= count; i++) { if (backgrou ...
分类:Windows程序   时间:2016-05-13 10:56:16    阅读次数:607
iOS判断UIScrollView的滚动方法
- (void) scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat newY = scrollView.contentOffset.y; if (newY != _oldY) { if (newY > _oldY && (newY - ...
分类:移动开发   时间:2016-05-13 10:22:15    阅读次数:190
第六次Java作业抽奖程序
import java.util.ArrayList; import java.util.Collections; public class Cj { ArrayList<Integer> List; private int j; private int k; public void deal(){ ...
分类:编程语言   时间:2016-05-13 10:21:01    阅读次数:172
implicitly declaring function 'malloc' with type void *(unsigned long ) 错误 解决
errror : implicitly declaring function 'malloc' with type void *(unsigned long ) Be sure to include the correct header file. #include <stdlib.h> Casti ...
分类:其他好文   时间:2016-05-13 10:08:20    阅读次数:3911
block 做参数
三部分 1,定义函数 /* 传出类定义block */ //定义block typedef void (^ItemClickBlock)(NSInteger selectedIndex); //block 做函数参数 + (instancetype)navigationViewWithItems:( ...
分类:其他好文   时间:2016-05-13 09:18:38    阅读次数:164
关于UITableView界面刷新
在TableView中的数据发生改变的时候,往往会发现UITableView中的数据没有更新,通常需要滚动后才会更新。 这个是因为他的重绘机制的问题。 一般情况下可以用下面这个方法解决: 在viewWillAppear中加入这两句: - (void)viewWillAppear:(BOOL)anim ...
分类:其他好文   时间:2016-05-13 09:17:02    阅读次数:152
韩信点兵
韩信点兵 时间限制:3000 ms | 内存限制:65535 KB 难度:1 韩信点兵 时间限制:3000 ms | 内存限制:65535 KB 难度:1 import java.util.Scanner; public class Main { public static void main(St ...
分类:其他好文   时间:2016-05-13 09:15:34    阅读次数:131
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!