码迷,mamicode.com
首页 >  
搜索关键字:while bpmn    ( 28585个结果
fputs与read
read(fd, buf, number)从fd中申请读取number个字符,返回实际读取的数,若达到文件末,则返回0.若文件中有30个字符,number设置100第一次:read返回30第二次:read返回0故一般读取文件形式:while((n = read(fd,buf,number)) >0)...
分类:其他好文   时间:2014-06-29 14:07:29    阅读次数:243
20140527 希尔排序
#includevoid ShellSort(int *a,int length){ int jump=length; int temp=0; int change=1; while(jump>0) //while1 { jump=jump/2; change=1; /***************...
分类:其他好文   时间:2014-06-07 03:53:30    阅读次数:243
Random 产生一个int数组,长度为100,并向其中随机插入1-100,并且不能重复。
做法1: List list = new List(); Random rand = new Random(); while (list.Count =1,=0,<100 之间的随机数m、n,颠倒arr[m]和arr[n]的数。 int[] arr = new int[100]; //把100个数顺...
分类:其他好文   时间:2014-05-30 04:27:12    阅读次数:208
解决SQL Server管理器无法连接远程数据库Error: 1326错误
解决SQL Server管理器无法连接远程数据库Error: 1326错误我们在在使用SQL Server时都会遇到使用SQL Server Management Studio无法连接远程数据库实例的问题,错误描述信息摘录如下:An error has occurred while establis...
分类:数据库   时间:2014-05-29 20:50:49    阅读次数:404
qt creator报错处理积累
1.在进行qt creator编译qt工程时,报出错误:error while building deploying project。还可能出现如下提示qt creator needs a tool chain set up to build. configure a tool chain in p...
分类:其他好文   时间:2014-05-29 02:25:59    阅读次数:532
Python按行读文件对比
1. 最基本的读文件方法:# File: readline-example-1.pyfile = open("sample.txt")while 1: line = file.readline() if not line: break pass # do something 一行一行得从文件读数据....
分类:编程语言   时间:2014-05-29 01:34:30    阅读次数:402
重点算法--快速排序
#includeusing namespace std;////写出快速排序,归并排序与堆排序int adjustarray(int a[],int left,int right){ int x = a[left]; while(left x && left < right) righ...
分类:其他好文   时间:2014-05-28 21:32:19    阅读次数:282
重点算法--合并排序
#includeusing namespace std; void merge(int left,int mid,int right,int a[],int b[]){ int i = 0; int cursor1 = left; int cursor2 = mid +1; while(cu...
分类:其他好文   时间:2014-05-28 20:09:44    阅读次数:300
题目:计算1~100中所有3的倍数的个数
/*题目:计算1~100中所有3的倍数的个数*/#includeintmain(){//记录3的倍数的个数intcount=0;//记录当前检查的数值intnumber=0;while(number<100){number++;//说明number是3的倍数if(number%3==0){count...
分类:其他好文   时间:2014-05-28 18:55:27    阅读次数:196
提示用户输入一个正整数n,如果n=5,就输出下列图形,其他n值以此类推
/*提示用户输入一个正整数n,如果n=5,就输出下列图形,其他n值以此类推****************/#includeintmain(){//1.定义一个变量存储用户输入的值intn=0;//一定要初始化//2.判断n值合不合理while(n<=0){//2.1提示用户输入正整数printf(...
分类:其他好文   时间:2014-05-28 18:51:18    阅读次数:390
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!