#include<stdio.h>// 这里假设文件侍启是文余猜本格式的
void main() { int ichar fnm[20],pf[30][256]FILE *fp
for ( i=0i<30i++ ) {
sprintf(fnm,"test%d.dat",i+2)
if ( fp=fopen(fnm,"r") ) {
fscanf(fp,"%s",pf[i])printf("老毁如%s\n",pf[i])
fclose(fp)
}
}
}
String[] data = dat.sqlit("[],")double[] d = new double[4]
for(int i = 0,int j=0i<data.length,j<4i++){
try{
d[j]=Double.valueOf(data[i])
j++
}catch(Exception e){
continue
}
}
IMPLICITNONEREAL::A(1000,6)CHARACTER(LEN=80)CCINTEGER::IOPEN(11,FILE='DATA.TXT')I=0DOWHILE(.NOT.EOF(11))READ(11,*)CCIF(CC(1:1)'尘漏9'派巧烂宽码)CYCLEI=I+1READ(CC,*)A(I,1:6)ENDDOCLOSE(11)!END欢迎分享,转载请注明来源:内存溢出
评论列表(0条)