hi to all, this is srinivas.
i am facing the problem with the coding phase, i am beginner to c++.
i have the below text file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
DETAILED INFORMATION
i_50
a cin n_6
i_20
a cin2 n_7
i_4
a cin b n_4
i_2
a cin n_11
i_3
b cin1 n_10
i_23
cin1 n_10 n_12
i_51
a cin n_6
i_22
a cin2 n_7
i_14
a cin b n_4
i_21
a cin n_11
i_13
b cin1 n_10
i_11
cin1 n_10 n_12
| |
the above information represents the instances ,inputs and outputs of one electronic circuit.
i want to design one data structure to dump the above information in order to access the information of particular instance(i.e inputs and outputs).
In the above format..
i_50 ,i_1 ,i_10 etc.. represents the instance names.
the inputs and outputs of particular instance name successively given below .
the left side variables below instance name represents the inputs and right side variable represents outputs.
so i want the program to generate output like the following when i ask about particular instance name.
example..if i ask i_50 information, our program has to generate input as a,cin and output as n_6.
plz...suggest the approach for doing the program.......