Thanks Zach L.,
Your advice was right on the nose. Now my algorithim could use a little work but that one I can knock out no problem. It was the syntax that was killing me. Thanks again:)
Type: Posts; User: SXO
Thanks Zach L.,
Your advice was right on the nose. Now my algorithim could use a little work but that one I can knock out no problem. It was the syntax that was killing me. Thanks again:)
OK,
Now I have gotten the code to compile. The syntax was wrong when I was attempting to use the assignment operator. Now my problem is that the answer spit out by the program is some hexadecimal...
Here is the complete code with comments, it is not very big:
#include <iostream>
using namespace std;
enum KindOfTriangle {SCALENE, ISOSCELES, EQUILATERAL, IMPOSSIBLE};
KindOfTriangle...
Here is the complete code with comments, it is not very big:
#include <iostream>
using namespace std;
enum KindOfTriangle {SCALENE, ISOSCELES, EQUILATERAL, IMPOSSIBLE};
KindOfTriangle...
I am writing a function that will return the type of triangle generated by the length of the three sides as inputted by the user. I am using an enumerated data type that is declared as follows:
...