急急急:VC++高手来!!!万分感谢!!!

来源:百度知道 编辑:UC知道 时间:2024/04/29 13:19:53
1, 0.056183, 0.015906, 0.003513, 0.000283, 0.000003, 0.000828, 0.111811
1, 0.020147, 0.005431, 0.001509, 0.000059, 0.000003, 0.000797, 0.111808
1, 0.034398, 0.009768, 0.001874, 0.000130, 0.000003, 0.000805, 0.111808
1, 0.069287, 0.019784, 0.005178, 0.000442, 0.000003, 0.000851, 0.111788
2, 0.026044, 0.001199, 0.001091, 0.000081, 0.000003, 0.000794, 0.111806
2, 0.090909, 0.008505, 0.003210, 0.001535, 0.000004, 0.000909, 0.111562
2, 0.115152, 0.002632, 0.006299, 0.001627, 0.000004, 0.000825, 0.111374
2, 0.073055, 0.001612, 0.001854, 0.000210, 0.000003, 0.000798, 0.111816
3, 0.354464, 0.198575, 0.028486, 0.024844, 0.000663, 0.012116, 0.113298
3, 0.552498, 0.364998, 0.240247, 0.210239, 0.047230, 0.130700, 0.010317
3, 0.264865, 0.137833, 0.013999, 0.008875, 0.000101, 0.004152, 0.111612
3, 0.448321, 0.263610, 0.042394, 0.038381, 0.001551, 0.020586, 0.111953
3, 0.218182, 0.099159, 0.001695, 0.000309, 0.000003, 0.000875, 0

http://zhidao.baidu.com/question/23182550.html?si=1

http://zhidao.baidu.com/question/23190900.html?si=2

#include <fstream.h>
#include <string.h>
#include <stdlib.h>
#include <vector>

void fun(char* str,vector<int>& s,vector<double>& p)
{
char* temp;
temp=strtok(str,",");
s.push_back(atoi(temp));
char* substr = &str[4];
temp=strtok(substr,",");
while(temp)
{
p.push_back(atof(temp));
temp=strtok(NULL,",");
}
}

void createArray(ifstream* inFile,int*& id ,double**& po,int* row)
{
char buf[100];
vector<int> sign;
vector<double> prop;
while(!in