码迷,mamicode.com
首页 >  
搜索关键字:while bpmn    ( 28585个结果
【动态规划初级】 BadNeighbors
目录最大连续序列和不连续序列的最大和1.最大连续序列和是指所有连续子序列元素和最大的那个。#include#includeusing namespace std;int main(){ freopen("in.txt","r",stdin); int n; while(cin>>n) { int a...
分类:其他好文   时间:2014-05-22 11:49:54    阅读次数:273
hdu1022 train problem 栈的应用
#include #include #include using namespace std;int main(){ int n; while(cin >> n) { stack one; string od1,od2; bool stat...
分类:其他好文   时间:2014-05-21 23:48:58    阅读次数:370
sql基础复习
--1、while循环declare @sum intdeclare @i intset @i=1set @sum=0while(@i90) print @iendprint @sum--2、goto语句declare @num intset @num=100flag:print @numsel.....
分类:数据库   时间:2014-05-21 22:20:40    阅读次数:468
Lock-free vs. wait-free concurrency
There are two types of non-blocking thread synchronization algorithms - lock-free, and wait-free. Their meaning is often confused. In lock-free systems, while any particular computation may be block...
分类:其他好文   时间:2014-05-21 10:27:20    阅读次数:410
POJ 2677(双调旅行商问题<bictonicTSP>
Tour Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 3470 Accepted: 1545 Description John Doe, a skilled pilot, enjoys traveling. While on vacation, he rents a...
分类:其他好文   时间:2014-05-21 08:24:18    阅读次数:354
HRBUST 1328 相等的最小公倍数
SOl:将原题改为枚举N的每一对因子,计算其是否互素即可。 #include #include #include using namespace std; inline int gcd(int a,int b) { return b==0?a:gcd(b,a%b); } int main() { int n,T,i,j; scanf("%d",&T); while(T...
分类:其他好文   时间:2014-05-21 07:07:00    阅读次数:273
解决SQLite异常:library routine called out of sequence
在项目开发中,使用SQLite一不小心就会碰到各种DB异常,网上搜了下没有这方面的资料,写出来记录下。异常信息:android.database.sqlite.SQLiteMisuseException: library routine called out of sequence: , while...
分类:数据库   时间:2014-05-21 03:12:20    阅读次数:1023
编程题:输入一串字符,程序会自动将大写字母转换为小写
编程题:输入一串字符,程序会自动将大写字母转换为小写#include<stdio.h>#include<conio.h>main(){ inti=0; chara[50],ch; printf("输入一串字符,程序会自动将大写字母转换为小写\n"); printf("按任意键继续,按Esc键退出\n"); while(ch=getch()!=27) { fflush(..
分类:其他好文   时间:2014-05-21 02:46:26    阅读次数:277
编程题:输入文件名,输出该文件的内容。fgetc(fp)的使用。
编程题:输入文件名,输出该文件的内容。fgetc(fp)的使用。#include<stdio.h>voidmain(){FILE*fp;charout_ch,f_name[30];scanf("%s",f_name);fp=fopen(f_name,"r");if(fp!=NULL){while((out_ch=fgetc(fp))!=EOF)putchar(out_ch);}elseprintf("\n\n\t\t%s文件不存在。\n",..
分类:其他好文   时间:2014-05-20 18:35:52    阅读次数:254
编程题:输入一个数字,实现逆排功能。
编程题:输入一个数字,实现逆排功能。#include<stdio.h>#include<conio.h>fun(intm,char*s){charc;intk,i=10;while(m!=0){k=m%i;*s=k+‘0‘;s++;m=(m-k)/i;}*s=‘\0‘;}main(){intn;chars[81],*p;p=s;printf("enteranumber(>100):");scanf("%d",&n);fun(n,s);p..
分类:其他好文   时间:2014-05-20 17:59:19    阅读次数:232
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!