我正在尝试执行以下操作:
stringstream convert1(Model_str.substr(2, 12));
cout << (Model_str.substr(2, 12)) << endl; //output = 0.999999
convert1>>vertex1[VertexCounter];
cout << vertex1[VertexCounter] << endl; //output = 0
将其放入我的数组时,是否有理由不精确到小数点后 6 位?
我正在尝试执行以下操作:
stringstream convert1(Model_str.substr(2, 12));
cout << (Model_str.substr(2, 12)) << endl; //output = 0.999999
convert1>>vertex1[VertexCounter];
cout << vertex1[VertexCounter] << endl; //output = 0
将其放入我的数组时,是否有理由不精确到小数点后 6 位?