Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. void dijkstra(int graph[>>>V][V], int src, int V)
  2. //array function being pasted, error is the V after >>>
  3.  
  4. //V is defined at beginning of main as
  5. int V;
  6.  
  7. while(std::getline(file2,newstr))
  8. {
  9. if(newstr.find(check) != std::string::npos)
  10. {
  11. V++;
  12. }
  13. }
  14.  
  15. //where it is passed in main
  16. for(int i = 0; i < V; i++)
  17. {
  18. size = V;
  19. dijkstra(array[size][size], i, V);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement