I need help with random generation of circuit, i have no idea on how to write c++ program to generate random circuit.
The following specifications must met:
1) Total number of resistors in the circuit is between 3 and 8.
2) The circuit network layout is restricted only to the one which can be expressed by a circuit
formula.
Jin En 0 Newbie Poster
Dani 4,329 The Queen of DaniWeb Administrator Featured Poster Premium Member
Jin En commented: #include "Resistor.h" #include <cstdlib> void Resistor::setResistance(double r1) { r=r1; } double Resistor::getResistance() { return r; } v +0
rproffitt 2,662 "Nothing to see here." Moderator
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.