摘要:
/*ID:tianlin2PROG:crypt1LANG:C++*/#include <iostream>#include <fstream>using namespace std;bool ina(int a[],int cou,int dit){ //注意0的情况 if(dit==0) return false; while(dit!=0) { int c=dit%10; int i; for(i=0;i!=cou;++i) { if(c==a[i]) break; } if(i==cou) return false; dit=dit/10; } return tr 阅读全文
posted @ 2010-02-25 23:04
CMuYu
阅读(150)
评论(0)
推荐(0)
摘要:
/*ID:tianlin2PROG:calfflacLANG:C++*/#include <iostream>#include <fstream>#include <string>#include <cctype>using namespace std;//判断是不是回文,顺便算长度,不是回文长度len则返回0int iscal(char *ben,char *end){ int len=0; char *b=ben; char *e=end; while(b<e) { while(!isalpha(*b)) ++b; while(!isa 阅读全文
posted @ 2010-02-25 22:44
CMuYu
阅读(151)
评论(0)
推荐(0)
摘要:
/*ID:tianlin2PROG:barn1LANG:C++*/#include <iostream>#include <cstdlib>#include <fstream>using namespace std;int dcmp(const void *va,const void *vb){ //注意是升序排列 return *((int *)vb)<*((int *)va)?1:-1;}int main(){ ofstream fout("barn1.out"); ifstream fin("barn1.in&quo 阅读全文
posted @ 2010-02-25 22:05
CMuYu
阅读(125)
评论(0)
推荐(0)

浙公网安备 33010602011771号