Posts by jose baltar • 31 points
3 posts
-
-4
votes4
answers224
viewsQ: My program made in C++ is in infinite loop, how to fix?
My program skips right to the end. Doesn’t even enter to read. Follows code: #include <iostream> int main(void) { int i= 0; string nome; for(i=0;i>=10;++i) { cin>>nome;…
-
1
votes2
answers108
viewsA: Convert add and remove functions in tree to recursive
Friend also has another way to implement without creating nodes that is a chatisse !! for binary tree you can implement this way #include <stdio.h> #include <stdlib.h> #define infinito…
-
1
votes2
answers108
viewsA: Convert add and remove functions in tree to recursive
Good afternoon friend, good let’s see !! For you to implement recursively the insert would look like this #include <stdio.h> #include <stdlib.h> typedef struct Node { int dado; Node*…