kalosi
asked on
little help
Hi,
can anybody give me a hint
i have 2 vectors of strings, one is a list containing
some names sorted from the base object to the top
eg
object1
object2
object3
object4
object 2 extensd object 1, 3 extends 2 and so on
the next vector is allso filled with strings that
represent theese classes (user input). it must contain at least one (the top object eg object4) and may contain some more but they must be in correct order.
so the user can enter
object1
object4
or
object3
object4
but can not enter
object2
object1
object4
can you help me with some sorting algorythm on this example ???
thanx
can anybody give me a hint
i have 2 vectors of strings, one is a list containing
some names sorted from the base object to the top
eg
object1
object2
object3
object4
object 2 extensd object 1, 3 extends 2 and so on
the next vector is allso filled with strings that
represent theese classes (user input). it must contain at least one (the top object eg object4) and may contain some more but they must be in correct order.
so the user can enter
object1
object4
or
object3
object4
but can not enter
object2
object1
object4
can you help me with some sorting algorythm on this example ???
thanx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Do you need more help?
Dear kalosi
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity, I will suggest to accept
"jkr"
comment(s) as an answer.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity, I will suggest to accept
"jkr"
comment(s) as an answer.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
Force accepted
** Mindphaser - Community Support Moderator **
** Mindphaser - Community Support Moderator **
"just compare the user input if the vector is not empty:"
should read
"just compare the user input to the last element of the vector if the vector is not empty:"