Search:

Type: Posts; User: SXO

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    4,933

    The Switch was exactly right, thanks

    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:)
  2. Replies
    7
    Views
    4,933

    I got the code to compile

    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...
  3. Replies
    7
    Views
    4,933

    The Complete code

    Here is the complete code with comments, it is not very big:

    #include <iostream>
    using namespace std;

    enum KindOfTriangle {SCALENE, ISOSCELES, EQUILATERAL, IMPOSSIBLE};

    KindOfTriangle...
  4. Replies
    7
    Views
    4,933

    The Complete code

    Here is the complete code with comments, it is not very big:

    #include <iostream>
    using namespace std;

    enum KindOfTriangle {SCALENE, ISOSCELES, EQUILATERAL, IMPOSSIBLE};

    KindOfTriangle...
  5. Replies
    7
    Views
    4,933

    Using enumerated data types

    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:
    ...
Results 1 to 5 of 5