All pastes #923220 Raw Edit

Someone

public cpp v1 · immutable
#923220 ·published 2008-02-29 11:03 UTC
rendered paste body
vector3df FileRead::readLineAsVector3df(){	float x, y, z;	char key[] = " ";	char* pch;	std::string str;	getline(*myfile, str);	/*char str2[] = str.c_str();	pch = strpbrk(str2, key);	x = (float)atof(pch);	pch = strpbrk(pch+1,key);	y = (float)atof(pch);	pch = strpbrk(pch+1, key);	z = (float)atof(pch);*/	stringc d= stringc(str.c_str()).findFirstChar(" ", 1);	x = (float)atof(d.c_str());	d = stringc(str.c_str()).findFirstChar(" ", 1);	y = (float)atof(d.c_str());	d= stringc(str.c_str()).findFirstChar(" ", 1);	z = (float)atof(d.c_str());	return vector3df(x, y, z);}