Posts by Felipe Soares • 63 points
2 posts
-
5
votes1
answer31551
viewsQ: Pass matrix as function parameter?
I’m studying Dijkstra’s algorithm and I haven’t tried using adjacency lists yet. I knew I could solve the problem with a matrix, but the fact is that I can not receive the matrix in the function. If…
-
1
votes2
answers634
viewsA: Problems inserting values in vector pointer
I’ve made some changes to your code, I don’t know if it exactly achieves the goal, but I believe it can help. #include <stdio.h> int main() { char *v; char c[20]; int i; for(i = 0; i < 20;…