I've been beating myself over the head for days now on this project, and I can't seem to find any kind of possible resolution. :(
To put it simply, the program is supposed to fork a process for...
Type: Posts; User: carrja99
I've been beating myself over the head for days now on this project, and I can't seem to find any kind of possible resolution. :(
To put it simply, the program is supposed to fork a process for...
Well, I changed my mind on how I was going to traverse the tree. This impementation is really quite long, and I feel like an idiot because after slaving over all this code, I discovered the simple,...
What I'm trying to do is read in each line from a file in the format of <char><blank><number, with char being read even if it is blank. The following code worked fine with while(read >> c), except in...
Here is the function I am using to find the node containing the char searched for, however when I call the function (called via list = findchar(list, c);) I just get trash returned, supposing that...
Ok, I realize I probably did this the hard way, but I'm having a small problem with this huffman tree thing. I wrote a program that reads in a char and it's frequency count, puts each in a linked...
Just went to a career fair today, and handed out a few resumes and spoke to a few corporate representatives. The most promising one came with a nice pay package, a job that sounded easy, and it would...
Well, I had to make a program which used 2 hashing functions on keys that it gets from a file and stores them on a table.
The first function should let the user define M (uisng function h(k) = k...
No one has any ideas? :(
EDIT: Solved the problem with my code. It works, but I would like to optimize it a little and insure that it conforms to the instructions given (my professor nitpicks!).
Use a double Linked List....
/*
can yoou please tell me what is wrong with this linklist? i think it is overiding during my read.But how to fix it?
*/
// Created by: Pierre-Michel Jean-Louis
// Date: Febuary 29th 2003...
Ok... I got the following program worked out... works nicely too, IMHO.
#include <iostream>
using namespace std;
struct node
{
node *right;
Silly me. I just wasn't paying attention!
I've been trying to code my own binary tree (without looking at any examples), but for some reason my code just refuses to compile! here is my source:
#include <iostream.h>
struct node
{...
Well, I've always been a big Sci-Fi freak, my favorite TV shows include Sliders, ST:TNG, amongst others.
Favorite Movies include Brazil, The Matrix, Fight Club (Not Sci-Fi), Fifth Element,...
Some people I know have a new site up, codenewbie.com, which is aimed at practically all languages and includes web developement and scripting. However, as a new site, it is not seeing much traffic...
I'm assuming your work has a firewall to prevent p2p downloading, much like my coillege does. You have to consider the fact that this policy is in effect not because they are dicks, but rather...
Thanks for the pointers. I pretty much just whipped it up real quick before I left campus and just didn't have time to check any potentials errors in the code.
The if-else statements are solely...
Why couldn't he just make the charts himself? I mean... we did charts in Excel way back in High School, not to mention just about every business class I've taken in college has had me use...
Okay okay! I know this is a pretty simple program and, quite frankly, there isn't much that can be done to improve it. Just wanted to see if there were any optimizations that could be done to it to...
JustLinux.com(formerly Linuxnewbie.org) has decided to alienate all of it's most active users by changing it's random/General discussion section into a plain, tech/linux related area. The sad thing...
Yes, but do remember that Linus Torvalds created linux by himself to lern the inner workings of minix. Of course this was far from the grandeur of todays linux, and it had many bugs and was pretty...
Yeah yeah I know, but I was scared that I may find posted code solving it when I really want to avoid that temptation :(
First, let me announce I am not looking for a coded example!! Basically, i don't know zip about the Tower of Hanoi's mathematical implementation, so could someone be able to show me the equation for...
I've been in school for four years, but I have no real world experience at all :( . I keep applying for internships, but they give them out to others. Al I got was a crappy internship that I quit,...
Well, next year I graduate with my BS degree in Computer Science, and as I search for a job, I am interested in what kind of work I may be facing.
Please post what you do in your average work day,...