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...
I want to use an enum type and print out the constant rather than the integer value. Here is my enum type
enum Color { black=0, red, orange, yellow, green,
blue, indigo, violet, white};
Color color;
color = red;
cout << color; This would give me the value 1.
How do I get...
I am having a problem trying to come up with a way to build a stack that can handle both strings and floats in the same class. I am assuming a max of 5 elements in the stack to start with. I am also trying to avoid using malloc() and new when declaring the string, and using fixed arrays instead...
I am having a problem trying to come up with a way to build a stack that can handle both strings and floats in the same class. I am assuming a max of 5 elements in the stack to start with. I am also trying to avoid using malloc() and new when declaring the string, and using fixed arrays instead...
I have trouble using command substitution with find command options in a case statement. Below I have written a condensed version of an example. The problem part is indicated below between to lines of #. When the script executes it gives me a "find: incomplete statement" error. The...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.