Posts by Carlos Givisiez • 156 points
8 posts
-
1
votes1
answer46
viewsA: Problem with Segmention fault
Segmentation fault is an error that occurs when you try to access (read or write) an address in RAM that is reserved for another program (or the operating system itself) or that does not exist. In…
-
2
votes1
answer469
viewsA: Chained list, union of structures
With the information I have about your problem I can already give you two answers. Taking into account that you need to know which recuperators are associated with a patio, I recommend doing so:…
-
2
votes1
answer400
viewsA: Function First element Stack
You can simply make a function that returns the first element in this way: float primeiroElemento ( struct Pilha *p ) { if( p->topo > 0 ) return p->Elem[0]; return -1; } The above function…
canswered Carlos Givisiez 156 -
1
votes1
answer1075
viewsA: Insert Row C element
You can do it 2 ways: 1 - int enfilerar(tipo_fila *fila, int valor) { if (fila->fim<TAM_FILA) { fila->fim++; fila->fila[fila->fim]=valor; return 1; } else { printf("Fila cheia!");…
canswered Carlos Givisiez 156 -
1
votes1
answer3314
viewsA: List and display images in the Laravel 5.3 Storage
I’ve done something like this: In the controller, responsible for the view of the images, I rescue from the database the paths of all the images I want to display. Send this array to the view. In…
-
1
votes1
answer168
viewsA: Stack does not work properly in Codeblocks
You’re doing the stacking wrong. Your batteries have TAM_PILHA size, so the check when stacking should be: if (*topo < TAM_PILHA) instead of if (*topo <= TAM_PILHA) I copied your code,…
canswered Carlos Givisiez 156 -
0
votes1
answer58
viewsA: Problem on the list
Your problem is with the registration of new trucks. When you register a truck that is not the head, should you look for the last truck on the right list? Well, then, there’s your mistake. Your…
-
0
votes2
answers822
viewsA: How to delete the last line of a text file in C language
It has a very simple form using its function that already counts the number of lines in the file. But first, I want to make it clear that I have not reviewed or tested your code. I will only leave a…