Thanks for the reply, but I've seen both of those links. I always try to exhaust my resources before posting (i.e. Google searching, etc.). If anyone else can help, I'd be very appreciative.
My...
Type: Posts; User: wvu2005
Thanks for the reply, but I've seen both of those links. I always try to exhaust my resources before posting (i.e. Google searching, etc.). If anyone else can help, I'd be very appreciative.
My...
Do you know much about radix sorting by the way DWKS? I'm pretty stumped, as you have probably already found out :)
Will do.
Thanks.
I use Cygwin (basically a UNIX emulator) as the compiler.
Hi everyone,
I'm having trouble implementing a supposedly simple Least Significant Digit first Radix Sort. The book I'm using gave me somewhat of a template that I touched up (below), but I'm...
Hi everyone,
Just wanted to say thanks for the help on this one. FINALLY got it working.
Take care,
James
Hi,
Am I on the right path in the section of the code that adds new nodes?
I'm not finished, but trying to make an attempt. It's under the
/****CODE TO ADD NEW NODES AND COUNT REPEATS...
Hi guys,
Thanks for the help so far. My template is from a book I'm self-teaching myself C from for a job switch. I'm not asking for anyone to do it for me, just help or tips that will help...
Hi all,
I'm trying to do a binary search and collect some stats from a text
file in order to compare the processing times of this program (binary
searching) versus an old program using...
Hi everyone,
Thanks for the help so far. I've made a lot of progress, but I'm getting incorrect word counts. Can anyone check this over and see what's wrong?
Thanks,
James
#include...
Hi,
Can anyone comment my code between the brackets below? My friend helped me and I'm kind of unsure what's really going on.
Thanks,
James
#include <stdio.h>
Hi again,
Made a few changes. Any more input? I've got the program set up with the variables to print the wordcounts, I just don't know how to actually perform them.
Thanks again,
James
Here's an update. It'll compile now, but when I try to count the words, I get a segmentation fault. I'm really unsure where to go from here. Any help would benefit me greatly.
Thanks,
James
...
Indented code below, sorry about that. I also made some progress from my initial post.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct list_elem {
char *word;
...
I'm not sure how and what to malloc for the linked lists. Also, if anyone could critique my code for walking the list that would let me know if I at least did that right. Lastly, for the main parts...
Hi,
I'm writing a program that will use linked lists to print the
number of unique words, total words, and the most frequent word from a text file. I've gotten a decent amount of it done except...
Thank you to all who provided tips. I figured it out.
James
PS I'll work on my indenting skills :)
Hi everyone,
I've made some progress, but I'm getting incorrect word counts. Can anyone check out my code and see what I might be doing wrong? It seems that it may be breaking out of a loop...
Thank you everyone for your responses.
However, I'd like to keep as much of my original code as possible. I need to malloc space because I will be using this with text files of varying sizes (I'm...
Does anyone have any further input. I've browsed the forums, but did not find any posts regarding malloc or strlen in regards to the way I plan on using them. There were some trying to do what I am...
Hi everyone,
Thank you for your replies. First off, sorry for the messy formatting of my program. Secondly, I do not need to open the file up within the C program. I will be sending the data...
Hello,
I'm trying to develop a program that will enable me to count the number of words in a text file. As a plus, I'd like to be able to count how many different words there are too. I have a...
Hi,
I've made some progress. I can generate the color, but still can't generate the rectangle. Below is my code:
#include <stdio.h>
#include <stdlib.h>
Hi everyone,
Thank you all for following up with my question. I still am in need of help, but I did not know that depth would be used to define the color, that's very interesting (I stand...
Color would be the 3rd dimension of the array (e.g. a rectangle consisting of values for length and width would be two dimensions and the coloring of it would be the 3rd).
Thanks,
James