DUMPING THE INFO ONTO ARRAYS.

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.......
Last edited on
Hi,
Sorry, but you are unlikely to fine someone to write the progrma for you here. You can get hints on where to start, and advice on why you are having specific problems with particular code you post, but it's help and advice on offer, not free contract programming.
Hint on how to start the program
1) Figure out the main blocks of code you need, and general structure.
2) Write an outline program to do this.
3) Fill in as much detail as you can.
4) Post a reply with your code and what problems you have found.
plz...do the coding for me...


I must tell you, that this is not quite the best way to ask for help. Please consider what Faldrax has said..
Topic archived. No new replies allowed.