赞
踩
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
int main()
{
//读取数据
int a[10]={0};//读取10个数
FILE *fpRead=fopen("C:\\Users\\Bug\\source\\data.txt","r");
for(int i=0;i<10;i++)
{
fscanf(fpRead,"%d ",&a[i]);
printf("%d ",a[i]);
}
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。