int main()
{
shape a; //make class
ostream out;
out.open("test.txt"); // make file
out<< a.draw(); // std::ostream << void error
// draw() { cout<<"ddd"<<endl; }
out.close();
}
I want to wirte draw() in to file. can you help me?