c++读取文件中的浮点数

#include
#include
using namespace std;
int main ()
{
	fstream infile("data.txt");
	double a = 0.0 ,b= 0.0,c = 0.0;

	if(!infile)
	{
		cout<<"Unable to open the file !";
		return 1;
	}
	infile>>a;
	infile>>b;
	infile>>c;
	cout<

你可能感兴趣的:(4-C/LUA/ASM...)