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
Recommended Answers
Jump to PostThis seems like a homework problem. What have you done so far? What have you tried? What have you learned in class that could relate to this? Where are you stuck? Do you have any code so far?
It’s currently seeming as if you are tasked write this complicated c++ …
All 2 Replies
Dani
4,084
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,580
"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.