Posts by Lodi • 1,075 points
57 posts
-
1
votes2
answers247
viewsA: Mysql does not save all characters
You are using some functions that do exactly what is happening to you give a verified in this fragment! $string = str_replace(array("<", ">", "\\", "//", "#"), "", $_POST[$name]); $string =…
-
4
votes1
answer135
viewsQ: Why does a parameter have two "const" in its statement?
I’m reading the tutorials on the website of lib Opencv and during reading I saw the declaration of a function with a variable in a format I’ve never seen. I wanted to know what it means, declare the…
-
0
votes3
answers4668
viewsA: How to compare one to one all the elements of two vectors?
More direct way would be to assemble a function where you pass as reference two vectors with your rule, returning or not values, or printing or not, maybe a swap(), It’s up to you! Follow an…
-
0
votes1
answer85
viewsA: Definitions of unget() and putback()
Friend also found very confusing these two members, but when I understood them, I saw how powerful they are! Come on, unget() returns only one character for the Cin input buffer, i.e., if you use…
-
0
votes2
answers194
viewsA: Instantiate class in a library by method in the Norwegian
char Maleta::getKeyPress(){ //Exemplo Maleta2 mykeypad; voce teria declarada o mykeypad. char keypressed = myKeypad.getKey();// assim você chama mykeypad depois o membro .getKey() …
-
1
votes2
answers63
viewsA: Problems in a crud class
I was able to solve the problem, I just created a variable to receive the value of the function and used the variable to manipulate the data! follows example of code! <?php /** * Created by…
-
1
votes2
answers63
viewsQ: Problems in a crud class
I’m trying to build a class to be used with mysql at first I have only two files so I’ll paste the code I’ve already done here and explain my doubt. classes/connect.php <?php /** * Created by…