Posts by Lucas Katayama • 101 points
6 posts
-
0
votes2
answers676
viewsQ: Persist currentUser firebase with React Native
This function is triggered by clicking the Login button: export const loginUser = ({ email, password }) => { return (dispatch) => { dispatch({ type: LOGIN_USER });…
-
0
votes1
answer627
viewsQ: List simply chained and unordered
When running the code below, we have the following problem, when calling the function imprime_lista, when an element has already been allocated in the list, it is giving segmentation fault. How to…
casked Lucas Katayama 101 -
1
votes2
answers44
viewsQ: How to print only values other than 0
Guys, I have a question. It is possible in C to print only the different values of 0. A Case: We have the exits: 2.56000, 5.00000, 3.60000 and 27.36800 And I want you to print as follows: 2.56, 5,…
casked Lucas Katayama 101 -
3
votes3
answers309
viewsQ: Fibonacci sequence does not work
I’m having trouble exiting the Fibonacci sequence and I can’t identify where the bug is. Here’s the code: #include <stdio.h> #include <stdlib.h> int main(){ int i, Fib[100], n;…
-
2
votes1
answer84
viewsQ: Stack in C, problem with exit
I am making a stack, the data entered by the user has to allocate in descending order from the top, but whenever I have print the first at the top comes out as 0, that would be the highest value.…
casked Lucas Katayama 101 -
2
votes1
answer73
viewsQ: Segmentation fault, Stack in c
I don’t know what might be giving this error in my code, please if anyone knows what is happening. Here’s the code. #include <stdio.h> #include <stdlib.h> struct no { int dado; struct no…
casked Lucas Katayama 101