Posts by pmargreff • 2,343 points
71 posts
-
4
votes2
answers2673
viewsA: How big is a memory address?
Models differ from architecture to architecture, when you say you have a 32-bit memory address, the processor operates and has 32-bit instructions. Using the MIPS microprocessor architecture we…
-
5
votes1
answer1211
viewsQ: How to include a jar when running a Java file per command line
Every time I run the program I need to call a specific library, which in this case is /home/usuario/Programas/weka-x-x-x/weka.jar, but every time I run the program, I have to include the following…
-
9
votes1
answer1095
viewsQ: Biometric readers output standard on fingerprint
I would like to know the following questions from someone who has worked with a biometric fingerprint reader: The outputs of biometric readers are standard, ie a reader model A of an X mark follows…
-
0
votes1
answer56
viewsQ: Argument when initializing Weka
In the Download page of Weka there is a recommendation to initialize the. weka jar file with the following argument -Xmx1000M. But I don’t understand what the argument will change the moment Weka is…
-
13
votes1
answer593
viewsQ: Anti-aliasing algorithm in Java
I’m using the method setRenderingHints from the awt library to do anti-aliasing. The method provides a significant improvement in the rounded 2D objects. How does the algorithm work? What are the…
-
0
votes1
answer37
viewsQ: Does the candescent NUI have support for the new Kinect?
Does anyone know if Candescent NUI has support for working with the new Kinect? I couldn’t find anything on the Internet that would point that out or the other way. Working with the new Kinect uses…
-
2
votes1
answer6363
views -
12
votes1
answer1866
viewsQ: What is the difference between printf() and print()?
I was doing some simple algorithms in Java and most of the time it is used System.out.println() or System.out.print(), but to make the definition of the number of decimal places I am using…
-
1
votes2
answers697
viewsA: How do I find the smallest cycle of an undirected graph?
There are several algorithms, for valued graphs, that is, where each edge has a weight, examples: Dijkstra algorithm, Bellman-Ford algorithm, Algorithm A*, Floyd-Warshall algorithm, Johnson…
-
3
votes3
answers677
views -
2
votes1
answer218
viewsQ: Error comparing two strings
I’m trying to compare two strings, when I enter a name in my chained list it cannot be entered if it already exists. I have used the function searchname to display a searched name and to delete, but…
-
1
votes2
answers3451
viewsA: Read a comma separated string
The problem as the friend said is that the pointer stopped in the comma and locked there until the next line with the n and happened all over again. I solved this with fseek, follows resolution…
-
2
votes2
answers3451
viewsQ: Read a comma separated string
My reading has been established to the comma, but he’s reading the whole field to the end of the line when reading the string. The code is read correctly, but only in the code. #include…
-
2
votes1
answer921
viewsQ: Error while printing chained list
Hello, I have an error in the function that prints a chained list. I think the error is in the print function’s for, but I may also be saving the address of prox wrongly. Follows the code: /* *…
-
-1
votes1
answer142
viewsQ: Saving stream in a file
I have the following problem, saving the struct, the position 1, ends up losing the value of street, city and state. I do not understand why this happens if in the following positions it allocates…
-
0
votes1
answer56
viewsQ: Stream corrupting to be saved
I have the algorithm that simulates a type of registration, but when I save the file the fields, street, city and state are lost, simply disappear, and as I am saving it corrupts the file already at…
-
0
votes2
answers14165
viewsA: Dynamic allocation for struct
Hello I solved my question as follows 1 - changing the declaration to struct end{ char nome[100]; char rua[100]; char cidade[100]; char estado[100]; unsigned long int cep; } *info; 2 - making the…
-
4
votes2
answers14165
viewsQ: Dynamic allocation for struct
I need to dynamically allocate space for a structure, but I am not able and I do not know my error is at the time of the statement or allocation, follow the functions consistent with the statement.…
-
1
votes1
answer2424
viewsQ: Read file in binary
Hi, I am saving a file in binary format and trying to open the same binary. However, I am not getting the expected result. They follow the writing and reading function. I’m saving a format image.…
-
1
votes1
answer756
viewsQ: Changing integer array to image filter
I’m making a program that applies filters to images .ppm, images without any encoding, the problem is that when I apply the filters, the original image is not changing, where is my error? The same…
-
5
votes1
answer20517
viewsQ: Compare two strings in C
Hello, people, I want to compare two strings but the result is not returning what is expected, in this case the index in the function search_name, the error is in the fourth line of the function…