发布时间:2013-10-22 19:36:22
//整形数组,有正数,有负数,有0,求连续子序列最大和;//int a[]={-5,0,9,8,7,6,5,45,-100,9,0,56,45};#include<stdio.h>int main(void){ int a[]={-5,0,9,8,7,6,5,45,-100,9,0,56,45}; int max=0; int sum=0; int i=0; &nbs.........【阅读全文】
发布时间:2013-10-22 19:23:04
/*1.制作文件1.txt -- 10.txt1.txt 1 2 3 4 5 6 7 8 9 102.txt 11 12 13 14 15 16 17 18 19 20...10.txt 91 92 93 94 95 96 97 98 99 100sprintf(buf,"%d.txt",2);/*2.依次合并1.txt--10.txt 到 文件data.txt合并操作完成后,data.txt文件的内容1 2 3 4 5 6 7 8 9 10......91 92 93 94 95 96 97 98 .........【阅读全文】