Posts by João Luca • 83 points
7 posts
-
0
votes1
answer143
viewsQ: Problem printing string array of a pointer and repetition of the main C++ method
I have an "Element" class that has a "items" pointer, of the string type (from the string.h library), responsible for saving a reference to an array of items of the Element. Everything works fine,…
-
2
votes1
answer398
viewsQ: mysqli_query returns false to select done with REGEXP
I am having the following problem: I am trying to capture a table row of my database using a regex and, when entering the code in the Mysql terminal, it captures the line normally. Already in my php…
-
0
votes2
answers314
viewsA: Error related to binary tree removal and child relocation (java.lang.Nullpointerexception)
I managed to make the program work. Basically, I didn’t understand why a function like insert could alter the root, while remove did not do the same. It turns out that, apparently, a variable does…
-
3
votes2
answers314
viewsQ: Error related to binary tree removal and child relocation (java.lang.Nullpointerexception)
Hello, everyone. I started studying the Java language recently and decided to try to create a binary tree with three features: 1 - Add element to tree 2 - Search and print tree widget 3 - Remove…
-
0
votes3
answers264
viewsA: Pointer return error in function
I think you’ve probably figured it out by now. Anyway, here’s my answer: I think, according to what was shown in the previous answer, your mistake was to return &str instead of str. The first…
-
0
votes1
answer139
viewsQ: Doubts about pointer pointers and function returns
Hello, folks. I’d like to know why the function below would need a pointer to pointer, in case a **root, for the line /1/ could modify the *root, while the line /2/ can modify it without having to…
-
3
votes1
answer94
viewsQ: Pointer cannot be reset to NULL within function
Hello, folks! I was studying binary trees and needed to create a function that would remove any knot and its children. However, when I did this function with the return /1/ the node has not been…