2013年9月8日
摘要: #include#includeint main(){ int ch[26]; memset(ch,0,sizeof(ch)); int i,n,m,p; char str[200]; char c; scanf("%d%d%d",&n,&m,&p); while(n--){ scanf("%s",str); for(i=0;str[i]!='\0';i++) ch[str[i]-'A']++; } while(p--){ scanf("%s",... 阅读全文
posted @ 2013-09-08 16:14 叛道者 阅读(121) 评论(0) 推荐(0)
  2013年4月27日
摘要: #include <iostream.h>#include <math.h>class Point{private:double x,y;public:void Setxy(double xx,double yy){x=xx;y=yy;}friend double Distance(Point a,Point b)//计算距离{double l;l=sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));return l;}friend void Comparation(Circle a,Point b);};class Circle 阅读全文
posted @ 2013-04-27 16:13 叛道者 阅读(151) 评论(0) 推荐(0)