摘要: #includeusing namespace std;void chengji(const float s[5][3] );int main( ) { float s[5][3]; int i,j; for (i=0;i>s[i][j]; chengji(s); return 0; } void chengji(const float s[5][3]) { int i,j; float sum=0; for(i=0;i<5;i++){for(j=0;j<3;j++) sum=sum+s[i][j]; cout<<"第"<<i+1& 阅读全文
posted @ 2013-03-06 23:25 _一千零一夜 阅读(76) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;long fac(int n);int main () { int n; cout>n ; cout<<fac(n)<<endl; return 0; } long fac(int n) {if(n==1) return n;else return (2*n-1)*fac(n-1); } 阅读全文
posted @ 2013-03-06 23:07 _一千零一夜 阅读(95) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;char * stringcat(char *source, const char *dest);int main() { char s1[30]="I love "; char *s2="C++"; stringcat(s1,s2); cout<<s1<<endl; return 0; } char * stringcat(char *source, const char *dest) { char *p=source;for(int i=0;i<7;i++) sou 阅读全文
posted @ 2013-03-06 22:48 _一千零一夜 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long llint; typedef pair par; #define x first #define y second class StringG... 阅读全文
posted @ 2013-03-05 21:32 _一千零一夜 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 代码我来了 阅读全文
posted @ 2013-02-21 06:35 _一千零一夜 阅读(97) 评论(0) 推荐(0) 编辑
摘要: int *p1,*p2;while(*p1!='\0'){*p2=*p1; p1++;p2++;}*p1='\0'; 阅读全文
posted @ 2013-01-12 00:11 _一千零一夜 阅读(429) 评论(0) 推荐(0) 编辑
摘要: int *p1,*p2;while(*p1!='\0') p1++;while(*p2!='\0'){*p1=*p2; p1++; p2++;)*p1='\0'; 阅读全文
posted @ 2013-01-12 00:07 _一千零一夜 阅读(142) 评论(0) 推荐(0) 编辑
摘要: This is heading 1上面的标题在页面中进行了居中排列。上面的标题在页面中进行了居中排列。上面的标题在页面中进行了居中排列。 阅读全文
posted @ 2012-12-29 10:03 _一千零一夜 阅读(714) 评论(0) 推荐(0) 编辑
摘要: 春晓 春眠不觉晓, 处处闻啼鸟。 夜来风雨声, 花落知多少。注意,浏览器忽略了源代码中的排版(省略了多余的空格和换行)。 阅读全文
posted @ 2012-12-29 09:58 _一千零一夜 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 按上一个appserv包 就能运行php了吗 求指教 阅读全文
posted @ 2012-12-22 11:58 _一千零一夜 阅读(83) 评论(0) 推荐(0) 编辑