I have a very big string "-dAwin Main_Window -dwin Widget_Window -dh 500 -dw 300 -da 100 -dv 10 -dint 2............"
This string gives me input parameter for running my application.Example -dAwin Main_Window gives me application window name. -dAwin is identifier b'coz this sequence may change or number of parameters may change.
I have to parse this string and fill these parameters in the structure.Example I have to parse -dh 500 and fill height element in the structure.I can parse this string but logic is becoming very complex and again
Let me know if you have any simple approach.Reply if you are too busy with your work.