Posts by Anna Maule • 301 points
15 posts
-
0
votes2
answers25
viewsA: Error in C++:Undefined Symbol: Rec::n
You didn’t initialize the n, Voce must start with some value, for example int n=0;, otherwise you will have a random memory value ( also known as junk ).
c++answered Anna Maule 301 -
-1
votes1
answer47
viewsA: Writeprocessmemory does not write data
Here follows an example of how to use the function: public bool Wpm<T>(IntPtr lpBaseAddress, T value) where T : struct { var buffer = new T[Marshal.SizeOf<T>()]; buffer[0] = value;…
c#answered Anna Maule 301 -
3
votes1
answer30
viewsA: How to write in a file the number typed by the user and the value given by the program?
To perform read and write operations on an archive you must do the following: arquivo= open( “nome_do_arquivo.txt”,”w” ) arquivo.write( “valor providenciado pelo usuario: ” + str(n) ) arquivo.write(…
pythonanswered Anna Maule 301 -
2
votes3
answers745
viewsA: Return the positions of the largest number in a matrix
Hi, your code is almost certain. The position depends on i,j. Then you have to keep the value of i,j: from random import randint matriz = [-1]*4 j = 0 maior = 0 posição = () for i in range (4): for…
-
0
votes1
answer69
viewsA: Filtering information from . JSON
Can you be more clear about what you need from this Json? Can it be any time of a certain day ? It has to be a specific time ? You can encapsulate your logic in another function: def…
-
1
votes1
answer37
viewsA: Group two object arrays into porwershell
Maybe what is reducing your performance is the following line: $Property = $property_list.Where({$_.Id -eq $p.Id}) | Select-Object -Property Name,Value Give me an experiment: Remove that line of its…
-
0
votes1
answer67
viewsA: How to display different scope subplots in the same figure?
Use subplot2grid() documentation here https://matplotlib.org/tutorials/intermediate/gridspec.html…
-
1
votes1
answer108
viewsA: Print np.array, formatting
To listaPalavrasis a numpy object and not a list. To make it possible to print twine-twisting Voce has to access the values of this column: print(listaPalavras['twine-twisting'])…
-
0
votes2
answers241
viewsA: How to build a json in powershell
This is the way to escape powershell quotes to create a string that represents your json $jsonStr =@" {"Nickname":"$nickname", "Type" : "$type"} "@
powershellanswered Anna Maule 301 -
0
votes1
answer66
viewsA: Python - Pytest Typeerror
Your calculating function does not take two arguments. If I am understanding your right code, you have to create an object Operacao, and pass this object to the construction of the object Soma. When…
-
2
votes2
answers282
viewsA: Build list without repeated words from a file
If I understand your problem, here’s what you’re trying to do: arquivo = open('myfile.txt', 'r') listaDeLinhas = arquivo.readlines() palavras = [] for linha in listaDeLinhas: conteudoLinha =…
pythonanswered Anna Maule 301 -
3
votes2
answers119
viewsA: C# properties for those who know Java
Property is a type that has the getter and Setter embedded in it. Instead of creating a public getter and Setter in a class to access/change private types, Oce creates a Property. public class Carro…
-
0
votes1
answer199
viewsA: Productivity report via git
There are some open source projects that do this: http://gitstats.sourceforge.net/ https://repo.or.cz/w/git-stats.git https://github.com/ejwa/gitinspector…
gitanswered Anna Maule 301 -
1
votes1
answer670
viewsA: Could you help me invert a chained list? When reversing only the last element appears
You are not assigning value to e->ant to solve this must save the value of auxiliar = e->prox in an auxiliary variable, then assign previous to e->prox = ant and then assign auxiliary to…
canswered Anna Maule 301 -
4
votes3
answers155
viewsA: How to convert JSON to Object and find an id (No Array) - JAVA
The problem is here: String numeroProtocolo = jsonArray.getJsonObject(0).getString("protocolo"); _dados is an object and not an array, try this: String numeroProtocolo =…