No title

Anonymous Coward 2018-03-08 17:46:24.719401 UTC

#include <sstream>
#include <fstream>
#include <string>

void printValues() {


    std::ifstream infile("caixa.3d");
    std::string line;
    for (std::string line; std::getline(infile, line); )   //read stream line by line
    {
        float xx;
        float yy;
        float zz;

        std::istringstream in(line);
        in >> xx >> yy >> zz;
        printf("%f %f %f \n", xx, yy, zz);
    }
}