Posts by Satoru Kishi • 17 points
4 posts
-
1
votes1
answer60
viewsA: C language - Why my char vector is getting NULL in the first position after a scanf of another variable
As already pointed out by @hkotsubo, it was necessary to change the char idade for short idade. In addition, the scanf() was also wrong: . When reading a type variable short, we should use the…
canswered Satoru Kishi 17 -
-2
votes1
answer60
viewsQ: C language - Why my char vector is getting NULL in the first position after a scanf of another variable
When executing the code below, choosing the option 2 the name is entered "Teste Nome", the struct pessoas[i].nome gets the value Teste Nome\n\000 shortly after the fgets(). However, after the…
-
1
votes3
answers91
viewsA: Fetch the previous value of a php sql table?
In fact, if you take id - 1 may happen that the previous video has been deleted. What can be done is to pick up the nearest previous id through the clause LIMIT and ORDER BY: SELECT video, id FROM…
-
0
votes2
answers960
viewsA: Search inside the input and open another page
To perform your database query based on the input and open the result in another window, do the following: Your input must be inside a tag <form> that has an attribute target="_blank". Your…