Posts by JPedro • 57 points
3 posts
-
0
votes1
answer30
viewsA: Start a vector within a struct
If I am not mistaken, it is not possible to declare the value of a variable within a struct. You will have to initialize it, something like this: for(int i = 0; i < 32; i++){…
-
0
votes2
answers40
viewsA: How to pass the value of a variable char to another char in C
If you use pointers is very simple, if I’m not mistaken. It would look something like this char *salva_nomeMaior = dados[i].nome; If you decide n to use pointers you can use a loop command to pass…
-
1
votes2
answers198
viewsA: How to capture the last three digits of a number in Javascript?
You can use a logic like this to get the latest numbers var n = '200100' var ultimo = n[n.length - 1] var segundoUltimo = n[n.length - 2] var terceiroUltimo = n[n.length - 3]…
javascriptanswered JPedro 57