Posts by Juliano Silva • 55 points
2 posts
-
1
votes1
answer66
viewsQ: How to change the value of an entire argument passed as a reference in Julia
function muda_o_valor_do_inteiro!(x::Int64) x = 10 end a = 9 muda_o_valor_do_inteiro!(a) println(a) # a deveria possuir o valor 10 I have already understood that with vectors I can modify the value…
-
4
votes1
answer147
viewsQ: Create vectors of new types in Julia
I can’t create vectors of new types in Juulia, they don’t work. The example program is this: # Meu tipo customizado struct Job id::Int64 order::Int64 time::Float64 end #Aqui eu crio o vetor v =…