Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am using C++ I have a file with three equations involving x, y, and z. The file looks something like this: 2x+3y-1z=9 5x-0y+3z=4 0z+0y+4z=5

I am using C++

I have a file with three equations involving x, y, and z.

The file looks something like this:

2x+3y-1z=9

5x-0y+3z=4

0z+0y+4z=5

I need to somehow get all 12 numbers from this file and store them into an array. For now I'm just displaying them using cout, so I tried

while(file >> int)

{

cout << int << endl;

}

It's not working; any ideas; please don't just write the entire program for me. Explain what concepts I need to use.

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

MFDBS 89 2nd Symposium On Mathematical Fundamentals Of Database Systems Visegrad Hungary June 26 30 1989 Proceedings

Authors: Janos Demetrovics ,Bernhard Thalheim

1989th Edition

3540512519, 978-3540512516

More Books

Students also viewed these Databases questions

Question

When writing pseudocode, what are subroutines?

Answered: 1 week ago