</pre><p><strong>磁盘里面存在以逗号分开的double类型的数据点(里面的点,每三个一组,分别是x,y,z坐标),现在需要从磁盘里面读出数据的个数,以及x和y坐标的最大值以及最小值</strong></p><p><img src="https://img-blog.csdn.net/20150705110512929?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" /></p><pre name="code" class="html">#include<iostream>
#include<stdio.h>
#include<malloc.h>
#include <stdlib.h>
#include <string>
#include <string.h>
#include<fstream>
#define INF 1000000000
using namespace std;
int main()
{
double xMin,xMax,yMin,yMax;
yMin=INF;
yMax=-INF;
xMin=INF;
xMax=-INF;
string filename;
//="E:\FourTree\sdkd\ceshi.txt";
char str[50];
memset(str,0,sizeof(str));
//double ad[100]={0};
double ad[10]
C++关于磁盘的数据的操作
最新推荐文章于 2023-01-08 15:35:42 发布