This is a homework problem; however I just want some direction. I have to write a module graph.cpp that implements djikstra's algorithm. so far i am at the reading in module and am trying to make an array of structures. here is the code. [code=c] // Zachary Dain // CSCI 3300 Assignment 3 // tab stops: every 2 spaces #include <iostream> #include <math.h> using namespace std; enum StatusType {Done, Pending, Peripheral}; struct ListCell { ListCell* next; int adjVertex; double weight; ListCell(int v, double wt, ListCell* n) { adjVertex = v; weight = wt; next = n; } }; struct arrayOfStructs …

Member Avatar
Member Avatar
+0 forum 9

Hello, I am very new to VB.net. I know some other languages but this seems completely different, anyways, I am trying to make an autoclicker and auto skill leveler for an online mmorpg. I have the code doing what I want it to; however, I was wondering if I could somehow dynamically search for the game window PID and attach it to that window so it would level stuff in the background so I could do work at the same time. Any ideas? [CODE]Public Class Form1 Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Integer, ByVal dx As …

Member Avatar
+0 forum 0

Maybe I am missing something that is clearly obvious but I have fiddled with this printHelper and print function for a while and cant seem to figure it out. The rest of the program works and gets the correct code, but this does not. It should print out 1 -> 3 -> 5 instead i get this The shortest path from 1 to 5 has length 27 and is 1 -> 3 -> 1 -> 1 -> 0 next value is 5 1 next value is 1 2 next value is 1 3 next value is 1 4 next value …

Member Avatar
Member Avatar
+0 forum 2

I am trying to copy a string into an array then write bits out to a file accordingly. (compression assignment). here is the code [code=c] // strnewdup(const char* s) returns a copy of a // null-terminated string, with the copy stored // in the heap char* strnewdup(const char* s) { char* space = new char[strlen(s) + 1]; strcpy(space, s); return space; } // putCodes(Node*& t, string* codes) traverses // the tree t, recording the non-leaves(0) and // leaves(1) into the correct letters code array // to identify that letter void putCodes(Node* t, string s, string* codes) { if(t->kind == leaf) …

Member Avatar
Member Avatar
+0 forum 3

The End.