I am learning C++ from a book called Teach Yourself C++ and I want to write a function which takes a file as
input, assumes that the file has only one of the below
objects drawn into it, and correctly tells whether the object is a rectangle, circle or triangle, filled or hollow. I am having trouble on where to start. If someone could help me with this I would gratly appreciate it. Here are some examples of objects that would be in the file.
* * * * *
* * * *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* * * *
* * * * *
*
**
* *
* *
* *
* *
* *
********
input, assumes that the file has only one of the below
objects drawn into it, and correctly tells whether the object is a rectangle, circle or triangle, filled or hollow. I am having trouble on where to start. If someone could help me with this I would gratly appreciate it. Here are some examples of objects that would be in the file.
* * * * *
* * * *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* * * *
* * * * *
*
**
* *
* *
* *
* *
* *
********