From a4528a7a29379cbfbc19048d5598d07943ea4a0f Mon Sep 17 00:00:00 2001 From: Rene Brun <Rene.Brun@cern.ch> Date: Wed, 4 Feb 2004 21:51:16 +0000 Subject: [PATCH] Change the creation of the ifstream object such that it can work under Windows. git-svn-id: http://root.cern.ch/svn/root/trunk@8124 27541ba8-7e3a-0410-8455-c3a389f83636 --- tutorials/motorcycle.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorials/motorcycle.C b/tutorials/motorcycle.C index 7016453a0de..af740dbb0cc 100644 --- a/tutorials/motorcycle.C +++ b/tutorials/motorcycle.C @@ -26,7 +26,8 @@ void motorcycle() Double_t *y = new Double_t[133]; Double_t vX, vY; Int_t vNData = 0; - ifstream vInput(vInFile, ios::in); + ifstream vInput; + vInput.open(vInFile); while (1) { vInput >> vX >> vY; if (!vInput.good()) break; -- GitLab