#Ancestors problem

17 messages ยท Page 1 of 1 (latest)

unkempt scaffoldBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

mossy knoll
#

It should find the all matches but instead it finds the first one found

#

so 1 is a descendat of 2 with distance of 1 generation
so 1 is a descendat of 2 with distance of 2 generation

#

and also i think i have memory leak somewhere of the stack

hard sleet
#

This looks like C code that outputs with cin

mossy knoll
#

Yes it's kinda mixed up it shoud be both ๐Ÿ˜„

hard sleet
#

Why?

mossy knoll
#

Because am supposed to work with chars

hard sleet
#

Oh no

#

I will pray for you

tardy pebble
#

cring why would you want to do that

mossy knoll
#

Because it's kinda like a task so yeah

tardy pebble
#

I mean it's just making the code harder then needed

#

std::string my beloved

mossy knoll
#

Yeah bro I know I want to use the string also ๐Ÿ˜ฆ

#

any suggestions ๐Ÿ˜„

hard sleet
#

Im not very good at C, sorry