Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ equation solver read/write text in class Hello here's the codes structure, I have a class textRead,this class reads a text from text file which

C++ equation solver read/write text in class

Hello here's the codes structure, I have a class textRead,this class reads a text from text file which is a equation ex: "3*x*x+2*x-13", gets the number from the user like x = 3 go write 3 instead of x and calculate the result and write another text file. My class:

class textRead

{

private:

string equation, result;

int number;

fstream fileptr;

public:

textRead(); // default constructor

openfile(); // open text file

userinput(); // get x value from the user

Display(); // calculate and write another text file

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

ISBN: B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

1. If your script has a villain, are his motivations clear?

Answered: 1 week ago