Posts by gmn_1450 • 149 points
8 posts
-
1
votes1
answer182
viewsQ: Algorithm for transiting in the Cartesian plane
I’m trying to codify the solution to the classic problem of walking around the Cartesian plane, starting from the origin, based on a user-given input string. Being: And: anti-clockwise rotation of…
-
0
votes0
answers19
viewsQ: Loading icon and Nielsen’s first heuristic
Nielsen’s first heuristic, to my knowledge, indicates that the interface must continually inform the user about the status of the application so that the user always knows what is happening. That…
-
1
votes0
answers14
viewsQ: Casting of malloc return in string matrix
The objective of the program is to inform the number of days, hours, minutes and seconds corresponding to the number of seconds in the input. If the value is less than zero, the output should be…
-
0
votes1
answer148
viewsQ: Input treatment with scanf() return
I’m trying to write an input treatment in my C code in the excerpt where the n values of an array and are read. If there is an error in reading (if the input is a char for example), assign 885444751…
-
-2
votes2
answers78
viewsQ: Doubt [MEDIA PROBLEM]
Make a C program that receives a sequence of natural numbers and displays all elements which are greater than the arithmetic mean of this sequence. If there are no elements greater than the average,…
-
-2
votes1
answer59
viewsQ: Pointer accessed improper data
I’m having difficulty implementing the logic of introducing new employees in the code below. When determining the new quantity and reallocating the vector based on it, the first new employee is…
-
-1
votes1
answer47
viewsQ: Dynamic allocation in wrong scope
I dynamically allotted a vector of structures with qtdeFuncionarios positions within a if, but now I need to use it within another conditional structure and the compiler accuses scope problem. How…
-
-2
votes2
answers47
viewsQ: Members of a structure as pointers
In the code below I am trying to define a structure whose members are pointers that will be used to work with the name, email and age data, all dynamically allocated, of an employee. However, the…