im a inexperience person with C++ and i dont know how tooutput aset of informati
ID: 3609353 • Letter: I
Question
im a inexperience person with C++ and i dont know how tooutput aset of information into a file. i know after all theinformation is ready u open a file that you want to use and sendinformation there. by doing this.cpdatar.open(outfile.c_str());
if (cpdatar.is_open())
{cpdatar <<; // information goes there.
cpdatar << "";
cpdatar.close();
but how do you send the information if its just a bunch of loopsthat make a chart??
..........................................
cout <<" "<<fileMaterial<<": FT IT|";
for(ft=minft;ft<=maxft;ft+=deltaft)
cout<<ft<<" ";
cout<<endl;
for(it=minit;it<=maxit;it+=deltait)
{cout<<it<<"| ";
for(ft=minft;ft<=maxft;ft=ft+deltaft)
{if(it>ft)
dh=0;
else
dh=a*(ft-it)+(b/2)*(pow(ft,2)-pow(it,2))+(c/3)*(pow(ft,3)-pow(it,3))+(d/4)*(pow(ft,4)-pow(it,4));
cout<<dh<<" ";
}
cout<<endl;
}
}
cpdata >> fileMaterial >> a>> b >> c >> d >> minT >> maxT;
}
cpdata.close();
*cpdata was a file i was using to take out info previously.
Explanation / Answer
im a inexperience person with C++ and i dont know how tooutput aset of informati
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.