This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cmath> | |
| using namespace std; | |
| class Complex{ | |
| public: | |
| Complex();//constructor | |
| Complex(float, float); | |
| void getInput();//get user input of complex number | |
| void convertNum(float, float, float);//convert a real number (r) to complex number (r+0i) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*Write a class IntSet for modeling sets of integers in the range 0 through 99. A set should be represented internally as an array of type bool: The ith array element will be true whenever integer i is in the set and will be false whenever integer i is not in the set. Include a no-argument constructor that initializes a set to the so-called “empty set,” i.e., a set whose array representation contains all false values.The program should allow for up to ten sets to be created during a given program run. Use any stand-alone functions you feel necessary.*/ | |
| #include <iostream> | |
| using namespace std; | |
| class IntSet | |
| { | |
| public: | |
| IntSet(); |
OlderNewer