Posts by tsnotrod • 25 points
4 posts
-
0
votes2
answers900
viewsQ: Problem inserting text into a Javascript div
I want to change the html content of a div, putting the 1 option of an array of elements, but when I do the following code nothing happens: <script> var players = ['player1', 'player2',…
-
0
votes1
answer214
viewsQ: getElementsByClassName works to change css?
I’m trying to make a change in css by clicking on the word but when I use Getelementsbyclassname nothing happens, but with the ID I can do this, however as several elements will have exactly the…
-
0
votes0
answers50
viewsQ: Fork() - Two processes accessing the same variable
Why in the output he does only the multiplication that is requested in the parent process and does not the sum of the child process? Entree: #include <stdio.h> #include <unistd.h>…
-
2
votes1
answer374
viewsQ: How to add an element at the end of a linked list
I need to add an element at the end of a linked list, I did the method asking it to add as if it were an initial element if the list is empty (it is working) and, if it is not, scrolling through the…