Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Interests
Cybersecurity
PC Specs
I build my own custom gaming systems
Favorite Tags
c++ x 42
Member Avatar for demroth

I am trying to write a lexical analyzer program that will read in input from a file and produce a formatted output. I need help as I am stuck. I am sure I am not passing the file stream, and the function parameters correctly. Do note some of the functions …

Member Avatar for demroth
0
3K
Member Avatar for demroth

Johnson's algorithm is a way to find shortest paths between all pairs of vertices in a sparse directed graph. The problem is I can not seem to find any good documentation on it nor any code to analyze. I have been to Wikipedia, read some algorithm books and some power …

Member Avatar for nicholasmathew
0
98
Member Avatar for demroth

I am trying to read the data (integers) from a file to a larger unsorted array and then move specific elements from that array to specific sub arrays. I can write the data from the file to the unsorted array fine but I get the wrong integers when trying to …

Member Avatar for demroth
0
90
Member Avatar for demroth

I have been reading older C programs to try and understand how to convert them to C++. One particular line of code still confuses me however. fscanf(fin, "%d", &n) I understand that fscanf reads from the stream (the file pointed to by fin), it reads the data which will be …

Member Avatar for demroth
0
146
Member Avatar for demroth

I have been reading some of the posts on reading integers from files but I have not seen any on reading integers from formatted files. I have a file which is a 6 X 6 matrix consisting of integers separated by tabs. I want to read each number into an …

Member Avatar for demroth
0
133
Member Avatar for demroth

I am currently working on a project in which I need real-world datasets to use with the Bellman-Ford algorithm. I would like directed or undirected graphs related to routing to use but havent been able to find any. Does anyone know where I could find such materials?

0
62
Member Avatar for demroth

I am working on sorting strings of integers with a radix sort. I am confusing myself on the code logic however. I have a file with integers, one to a line, and padded so 1 would be 001. I want to read those integers as strings so I can later …

Member Avatar for demroth
0
151
Member Avatar for demroth

I have been reading the posts on radix sort here at DaniWeb and at [url]http://www.cubic.org/docs/radix.htm[/url]. I have already created the code for the counting sort which will do the rest but I do not understand how to do the radix part. I guess what I am asking is if you …

Member Avatar for demroth
0
117
Member Avatar for demroth

I thought I had posted this earlier but... I am working on a sorting problem using counting sort but am getting a crash when I run the program. I have fixed some of the problems but I am still missing something. I just need a extra pair of eyes to …

Member Avatar for Ancient Dragon
0
126
Member Avatar for demroth

I am trying to match a string to see if it follows a given pattern. I have seen this example in my Orielly books but do not understand the logic. Here is the a small snippet of example code: [code=cplusplus] const string digits("0123456789"); const string float_digit = digits + '.' …

Member Avatar for Rajith Cherian
0
116
Member Avatar for demroth

This is the first program I have had to do in 5 years so please don't be surprised by some of the mistakes. I am creating a program that will open a file and sort the integers inside that file using Insertion sort. There are 12 files and each as …

Member Avatar for demroth
0
153