码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
契约型常量、函数指针、回调函数
契约性const对象的定义未使用const关键字,但被看做是一个const对象,例如: void ReadValue(const int& num) { cout void (*funcp)(); void FileFunc(); void EditFunc(); int main() { func...
分类:其他好文   时间:2015-08-06 10:51:27    阅读次数:141
_DataStructure_C_Impl:顺序串
#include #include #define MaxLength 60 typedef struct{ char str[MaxLength]; int length; }SeqString; //串的赋值操作 void StrAssign(SeqString *S,char cstr[]){ int i; for(i=0;cstr[i]!='\0';i++) S->str[i]...
分类:其他好文   时间:2015-08-06 07:10:22    阅读次数:131
_DataStructure_C_Impl:堆串
#include #include typedef struct{ char *str; int length; }HeapString; //串的赋值操作 void StrAssign(HeapString *S,char cstr[]){ int i=0,len; if(S->str) free(S->str); for(i=0;cstr[i]!='\0';i++); //求cs...
分类:其他好文   时间:2015-08-06 07:08:26    阅读次数:108
UI中控件的应用
UI初级中的控件是UI学习的最基本的应用,下面是一些最基础的控件的应用UILabel#pragmamark-UILabel-(void)_initLabel{UILabel*textLable=[[UILabelalloc]initWithFrame:CGRectMake(10,30,150,250)];textLable.backgroundColor=[UIColorgrayColor];//设置文本内容textLable.text..
分类:其他好文   时间:2015-08-06 02:12:06    阅读次数:171
排序算法(三)——插入排序及改进
插入排序 基本思想 在要排序的一组数中,假设前面(n-1)[n>=2] 个数已经是排好顺序的,现在要把第n个数找到相应位置并插入,使得这n个数也是排好顺序的。如此反复循环,直到全部排好顺序。 java实现 //插入排序 public void insertionSort(){ int len = array.length;...
分类:编程语言   时间:2015-08-06 02:07:22    阅读次数:155
希尔排序
希尔排序   #include #include usingnamespace std; void     ShellSort(int *data, intleft, intright) {    int len = right - left + 1;    int d = len;    while (d > 1)    {      d = (d ...
分类:编程语言   时间:2015-08-06 00:41:05    阅读次数:141
课堂随笔
namespace 字符串去空格{ class Program { static void Main(string[] args) { string A = "";//空字符串 // A = string.Empty;/...
分类:其他好文   时间:2015-08-06 00:14:28    阅读次数:183
穷举(7-200被7整除的数)
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 穷举_7_200被7整除的数_{ class Program { static void ...
分类:其他好文   时间:2015-08-06 00:08:37    阅读次数:124
登陆后淡入淡出更换rootViewController
- (void)restoreRootViewController:(UIViewController *)rootViewController{ typedef void (^Animation)(void); UIWindow* window = self.window; ...
分类:其他好文   时间:2015-08-06 00:07:24    阅读次数:176
同步锁 synchronized
package ba;public class Tongbu implements Runnable{ int i=100; public void run(){ while(true){ sell(); } } public synchronized void sell(){ if(...
分类:其他好文   时间:2015-08-06 00:07:09    阅读次数:98
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!