Posts by MiguelD • 187 points
4 posts
-
2
votes2
answers385
viewsA: Change background image of a Recycler View Adapter after click
An approach would be to keep the position of the adapter that was clicked, so whenever the click was done just change the background of the item that is stored in the variable to "normal" and…
-
0
votes2
answers302
viewsA: Doubt FILE in . h
To copy the contents from one file to the other file you can do as you did, using a file . h is to be able to use functions from one file . c in another file or even in . h itself without having the…
-
2
votes1
answer96
viewsQ: how to receive input from the user and write to a file
I am trying to receive several lines of input from the user (at most they will have 37 chars each) and write them in a file, but the result is the creation of the file with nothing there. My current…
-
2
votes1
answer44
viewsQ: Hashtable: Segmentation fault when inserting - C
I am trying to implement a hashtable, in which the table would be an array of "buckets" in which each one contained user information, my code: #define tam_inicial 23 typedef struct user{ char…