Posts by Emerson Oliveira • 30 points
4 posts
-
0
votes1
answer1312
viewsQ: Simple Implementation in Dijkstra algorithm
Hello, Guys I have a little doubt. In this implementation is applied the algorithm of Dijkstra, which returns the paths of lower costs. But it is returning all of the lower cost paths, and I would…
-
0
votes1
answer307
viewsQ: A vector in C, which updates the values in real time, according to the numbers reported
#include<stdio.h> #include<stdlib.h> #define tamanho 5 struct test { int vetor5; }casa[tamanho]; //funcão para o vetor da struct void recebe (void) { for (int p=0; p<tamanho; p++) {…
-
1
votes1
answer377
viewsQ: FOR syntax in C
I’m new to the community, and I recently noticed in a C code, a FOR loop, with the following syntax. for(;;). Someone could explain that syntax to me. Thanks in advance.
-
0
votes2
answers168
viewsA: calculation of media in programming c
#include<stdio.h> #include<stdlib.h> #define tamanho 10 //PARA MUDAR O TAMANHO DO VETOR BASTA ALTERAR O NÚMERO DESSA CONSTANTE. int main() { int cont = 0, cont2=0, numero = 0; float…