Search Results

Showing results 1 to 36 of 36
Search took 0.01 seconds.
Search: Posts Made By: DeadJustice
Forum: C++ Oct 14th, 2009
Replies: 2
Views: 385
Posted By DeadJustice
I think I get it. Basically, just retool the logic thinking of how it would usually work in the original tree I think. Hopefully I can figure it out.
Forum: C++ Oct 14th, 2009
Replies: 2
Views: 385
Posted By DeadJustice
I'm having a small problem. I've created a binary tree that represents an n-ary tree using the left-child and right sibling syntax. I know that preorder on the binary tree gives you the same result...
Forum: C++ Sep 22nd, 2009
Replies: 3
Views: 276
Posted By DeadJustice
Thank you for the reply. I've fixed the problem by adding a tail pointer but I'm concerned about the memory leaks so thanks for that. I assume its why my implementation doesn't work on the redhat...
Forum: C++ Sep 21st, 2009
Replies: 3
Views: 276
Posted By DeadJustice
This is a method I used for adding a object, flightnode, into a linked list. Basically it takes in the value in and puts it in order based on the int flightno in the flightnode object. It works...
Forum: Assembly Jul 2nd, 2009
Replies: 8
Views: 586
Posted By DeadJustice
Well I already noted $s4 wasn't initialized. You're right about commenting my code I usually do but I was just tired. I didn't notice about $t0 though.

My logic was sort of checking each number...
Forum: Assembly Jul 2nd, 2009
Replies: 8
Views: 586
Posted By DeadJustice
If only the world were that sweet.
Forum: Assembly Jul 2nd, 2009
Replies: 8
Views: 586
Posted By DeadJustice
Actually it was something stupid, I never initialized $s4 to 1 so the loop never exited. Got the answer from elsewhere, but now my problem is that my output is non-prime numbers which is the...
Forum: Assembly Jul 1st, 2009
Replies: 8
Views: 586
Posted By DeadJustice
I need to get a MIPS program to print out the first 30 prime numbers and to compute the first 200 (strange, but its the assignment). I can figure out what's wrong with this program. All it does is...
Forum: C++ Mar 1st, 2009
Replies: 5
Views: 468
Posted By DeadJustice
I've updated my code since then. I've also gotten a suggestion to determine the number of adjacent mines when planting them in the board.

#include <iostream>
#include <cstdlib>
#include...
Forum: C++ Mar 1st, 2009
Replies: 5
Views: 468
Posted By DeadJustice
With the line put back in.


With the line commented out. ( I have it that all cells are visible for testing purposes).


Basically I need help coming up with a function that can properly read...
Forum: C++ Mar 1st, 2009
Replies: 5
Views: 468
Posted By DeadJustice
Its supposed to count the number of mines around a cell and add one to numMines each time it encounters a mine. After it tallies up the surrounding mines (1-8) it changes the label of the cell to...
Forum: C++ Mar 1st, 2009
Replies: 5
Views: 468
Posted By DeadJustice
I'm doing this minesweeper assignment and I need help. I tried to test the findMineValues() function and it completely scrambles up my board. Can someone help me pinpoint what I am doing wrong?

...
Forum: Java Nov 22nd, 2008
Replies: 2
Views: 494
Posted By DeadJustice
Thanks, I see what I did wrong and I got it working now.
Forum: Java Nov 22nd, 2008
Replies: 2
Views: 494
Posted By DeadJustice
I tried to modify this merge sort method to sort an array of type T. Its an merge sort except iterative. I was just wondering why it wouldn't sort right? Can anyone help me out?

public static...
Forum: Java Nov 6th, 2008
Replies: 1
Views: 1,322
Posted By DeadJustice
Nevermind, once again I managed to figure it out.
Forum: Java Nov 6th, 2008
Replies: 1
Views: 1,322
Posted By DeadJustice
I can add a new node if the head is empty, but I can't attach a new node. Instead I get a null pointer error. Can anyone see what I'm doing wrong. I think I've been staring at this for too long.
...
Forum: C Nov 3rd, 2008
Replies: 1
Views: 388
Posted By DeadJustice
Please disregard. I have solved this issue.
Forum: Java Nov 3rd, 2008
Replies: 2
Views: 530
Posted By DeadJustice
I know this is late, but thanks for the help.
Forum: C Nov 3rd, 2008
Replies: 1
Views: 388
Posted By DeadJustice
I pretty much got my assignment working except for one part, I need to reverse the output if the user enters "-r" in the command line. Can anyone help me with this?

EDIT: By reverse I mean list...
Forum: Java Oct 8th, 2008
Replies: 2
Views: 530
Posted By DeadJustice
I seem to be able to load the files in my program. Then I can loop through the lines one time, but if I try a second loop to load the strings into an array that one won't work.

Here's my code. I...
Forum: C++ Oct 4th, 2008
Replies: 3
Views: 874
Posted By DeadJustice
Alright that worked. Though there was one problem. An y with . . over it was put at the end. Could you explain that?

EDIT: I also was wondering if I can merge all white space into one ' ' char...
Forum: C++ Oct 4th, 2008
Replies: 3
Views: 874
Posted By DeadJustice
I'm trying to read in the chars for a file in order to compare two text files. The problem is I can't seem to load space characters into my vectors. Any suggestions for me?

vector<char>...
Forum: Java Nov 26th, 2007
Replies: 2
Views: 1,040
Posted By DeadJustice
Nevermind this, thank you for your help. It is always a simple solution, mostly anyways.
Forum: Java Nov 26th, 2007
Replies: 2
Views: 1,040
Posted By DeadJustice
Hi, its me again. I need help one last time. This time my problem is pretty simple, I just can't find it myself it seems. Please lend some assistance.

Here's my assignment.



import...
Forum: Java Nov 5th, 2007
Replies: 10
Views: 1,050
Posted By DeadJustice
I did that, it says "cannot find symbol".
Forum: Java Nov 5th, 2007
Replies: 10
Views: 1,050
Posted By DeadJustice
I finally compiled, thank you very much. One last question, how do I represent it in a contructor?

public class Student extends Person
{
Year studentYear;

public Student( String name,...
Forum: Java Nov 5th, 2007
Replies: 10
Views: 1,050
Posted By DeadJustice
public class Student extends Person
{
public Student( String name, String address, String phone,
String email, Year grade )
{
super( name, address, phone, email);
}

public enum Year...
Forum: Java Nov 5th, 2007
Replies: 10
Views: 1,050
Posted By DeadJustice
So bascially I change String grade to Year grade? I don't understand what you mean in the first sentence.
Forum: Java Nov 5th, 2007
Replies: 10
Views: 1,050
Posted By DeadJustice
I need help with enums. I don't get them. This is part of a larger assignment, so all I need to do is fix this. I'm trying to assign year levels of school to constants.


public class Student...
Forum: Java Oct 10th, 2007
Replies: 6
Views: 1,134
Posted By DeadJustice
Nonetheless, thank you for the help.
Forum: Java Oct 10th, 2007
Replies: 6
Views: 1,134
Posted By DeadJustice
I understand what you are saying now. I just needed it explained differently, I'm a bit of an idiot.
Forum: Java Oct 10th, 2007
Replies: 6
Views: 1,134
Posted By DeadJustice
Sorry, I don't understand what you're saying.
Forum: Java Oct 10th, 2007
Replies: 6
Views: 1,134
Posted By DeadJustice
I didn't think I'd need help again, but I'm pretty sure its not as bad as last time. I'm trying to increment the time in Time2.class, and that compiled. The problem is I can't make a class to use...
Forum: Java Sep 14th, 2007
Replies: 4
Views: 572
Posted By DeadJustice
Yeah, I figured it out. Basically I made the assignment out to be more than it is. Classic case of over-thinking something simple.
Forum: Java Sep 12th, 2007
Replies: 4
Views: 572
Posted By DeadJustice
Worked on it again and fixed the compiling errors, but now it won't run correctly.

import java.util.Scanner;

public class CoffeeArray
{
public static void main( String args[] )
{

...
Forum: Java Sep 12th, 2007
Replies: 4
Views: 572
Posted By DeadJustice
Hello everyone. This if my first post on the forum, and hopefully my last asking for help on an assignment. I've picked and picked at this, and now I'm going insane. I've edited this one too many...
Showing results 1 to 36 of 36

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC