convert the given sudo code to c++ code:
BREADTHFIRST( value)
1 vertex = search(value)
2 [login to view URL] = true
3 [login to view URL](vertex)
4 while(![login to view URL]())
5 n = [login to view URL]()
6 for x = 0 to [login to view URL]
7 if(![login to view URL][x].visited)
8 [login to view URL][x].visited = true
9 print( [login to view URL][x].[login to view URL])
10 [login to view URL]([login to view URL][x].v)
DEPTHFIRST( vertex)
1 [login to view URL] = true
2 for x = 0 to [login to view URL]
3 if(![login to view URL][x].[login to view URL])
4 [login to view URL][x].[login to view URL] = [login to view URL] + 1
5 print( [login to view URL][x].[login to view URL])
6 DEPTHFIRST( [login to view URL][x].v)
the code that needs to be modified is attached! we need to replace the depthfirst and the breadthfirst functions in the attached file, to the given one above.
Hello Sir/Mam
NovaSofts Inc. is the leading IT Company of Islamabad Pakistan. We have 9+ years of experience and strong knowledge about programming languages
Java
C++
C
C#
Android
So you don't worry about third party client. We are very experienced and assure you that we’ll provide quality work. The project bid is negotiable and P.M for sample work. Thanks