|
|
|
|
|
|
| main.cpp|1|warning: ‘class Component’ has pointer data members [-Weffc++]| main.cpp|1|warning: but does not override ‘Component(const Component&)’ [-Weffc++]| main.cpp|1|warning: or ‘operator=(const Component&)’ [-Weffc++]| main.cpp||In constructor ‘Component::Component()’:| main.cpp|15|warning: ‘Component::_present_state’ should be initialized in the member initialization list [-Weffc++]| main.cpp|15|warning: ‘Component::_previous_state’ should be initialized in the member initialization list [-Weffc++]| main.cpp|15|warning: ‘Component::_x1’ should be initialized in the member initialization list [-Weffc++]| main.cpp|15|warning: ‘Component::_lh’ should be initialized in the member initialization list [-Weffc++]| main.cpp|15|warning: ‘Component::_hl’ should be initialized in the member initialization list [-Weffc++]| main.cpp|31|warning: ‘class And’ has pointer data members [-Weffc++]| main.cpp|31|warning: but does not override ‘And(const And&)’ [-Weffc++]| main.cpp|31|warning: or ‘operator=(const And&)’ [-Weffc++]| main.cpp||In constructor ‘And::And()’:| main.cpp|43|warning: ‘And::_x2’ should be initialized in the member initialization list [-Weffc++]| main.cpp||In member function ‘void Circuit::makeVectors(int&)’:| main.cpp|141|warning: variable ‘j’ set but not used [-Wunused-but-set-variable]| main.cpp||In member function ‘bool Circuit::assign(Component*)’:| main.cpp|173|warning: comparison with string literal results in unspecified behavior [-Waddress]| main.cpp|177|warning: comparison with string literal results in unspecified behavior [-Waddress]| main.cpp|190|warning: comparison between signed and unsigned integer expressions [-Wsign-compare]| main.cpp|200|warning: comparison with string literal results in unspecified behavior [-Waddress]| main.cpp|164|warning: unused variable ‘Aflag’ [-Wunused-variable]| main.cpp|157|warning: parameter ‘head’ set but not used [-Wunused-but-set-parameter]| |
| main.cpp|173|warning: comparison with string literal results in unspecified behavior [-Waddress]| main.cpp|177|warning: comparison with string literal results in unspecified behavior [-Waddress]| |
|
|
|
|
|
|
|
|
|
|
|
|
Circuit :: tree is full of memory leaks. All those objects made with new, and then lost. This is bad.
| Yeah the code it's not finished, but my will was to delete them after |
| How about just create the one that you need? |
| but why does Component have a pointer to a Component? |
| I would re-do main and slowly exercise the code. |