Fault tree implemented by QT
2017-12-15
0 0 0
no vote
Other
Earn points
QT implements the fault tree & nbsp; void faulttree:: calcposition() {& nbsp; & nbsp; int maxlayer = 0; & nbsp; & nbsp; / / to obtain the maximum number of layers & nbsp; & nbsp; for (int index = 0; Index & lt; m)_ list.size (); ++index) { if (m_ list.at (index)->layer() > maxLayer) maxLayer = m_ list.at (index) - & gt; layer(); & nbsp; & nbsp;} & nbsp; & nbsp; / / calculate the maximum width & nbsp; & nbsp; & nbsp; int maxwidth = 0, count; & nbsp; & nbsp; & nbsp; for (int layer = 1; layer & lt; maxlayer + 1; + + layer) & nbsp; & nbsp; {& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; count = 0; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; for (int index = 0; Index & lt; m)_ list.size (); ++index) { if (m_ list.at (index)->layer() == layer) count++; } if (count > m
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
Golang AOA Android Open Accessory HID Control
0
0
no vote
PClite
0
0
no vote
GMSK Linear Receiver
0
0
no vote
The golden version of AFT that has been passed dow
0
0
no vote
No comment