Search Results

Showing results 1 to 33 of 33
Search took 0.01 seconds.
Search: Posts Made By: gotm
Forum: Java 13 Days Ago
Replies: 0
Views: 140
Posted By gotm
So we have to implement Bresenhams line drawing algorithm as well as Cohen-Sutherland line clipping algorithm.

For some reason my whole program (9 classes, but only will include Line.java here)...
Forum: Java 18 Days Ago
Replies: 1
Views: 146
Posted By gotm
So one of the problems I have been having with my programs is the length of time it takes to print out a pixel map into the XPM file.

I tested it with like :
500 rows and 2 columns -- 1 second...
Forum: Java Oct 7th, 2009
Replies: 1
Views: 198
Posted By gotm
So I have a lot of code so I guess I'll just post the couple classes that seem to be giving me problems and where the problem is occuring.

// line class to store lines from .ps file
class line {...
Forum: Java Aug 12th, 2009
Replies: 12
Views: 563
Posted By gotm
Forum: Java Aug 12th, 2009
Replies: 12
Views: 563
Posted By gotm
ok I had a seperate main class that just ran my gui(). would that have anything to do with it?
Forum: Java Aug 12th, 2009
Replies: 12
Views: 563
Posted By gotm
yours changes? lol mine doesn't i dont know what you are doing differently,
Forum: Java Aug 12th, 2009
Replies: 12
Views: 563
Posted By gotm
But that one recipe that is in there has a rating of 3/5 stars. The initial rating picture the label uses is the 0/5 stars one. Shouldn't it load with the 3/5 stars picture from that code? Even if I...
Forum: Java Aug 11th, 2009
Replies: 12
Views: 563
Posted By gotm
So I have a JComboBox, which contains recipe names. I want, when the recipe name is changed, for the label that is an icon of the rating (1 to 5) stars, based on my recipe object, to change as well....
Forum: Java Jul 5th, 2009
Replies: 7
Views: 506
Posted By gotm
hey guys. OK so, I've been wondering this for a while now. my code is always so unnecessarily cluttered because I don't know how to do this, lol.

say I have a set of private class variables:

...
Forum: Java Jun 24th, 2009
Replies: 0
Views: 321
Posted By gotm
So I have my text files saving perfectly from my program in the exact way I want them to. Here is a copy of the text file that my program saves that I am now trying to load back in, parse, and set up...
Forum: Java Jun 23rd, 2009
Replies: 2
Views: 863
Posted By gotm
So I have this function that is supposed to output an object (save an object) to a .txt file. It doesn't output anything when the program comes to the point where it runs this function. I am 99% sure...
Forum: Java Jun 19th, 2009
Replies: 4
Views: 366
Posted By gotm
ok so i want to read a .txt file line by line. I have the code for that BUT i want to keep track of what line im on, i might be completely braindead from working on this whole project forever but...
Forum: Python May 20th, 2009
Replies: 3
Views: 211
Posted By gotm
Forum: Python May 18th, 2009
Replies: 3
Views: 211
Posted By gotm
#!/usr/bin/python

import os.path

n = 10
allPositions = []
state = []
blackPairCap = 0
whitePairCap = 0
blackInaRow = 0
Forum: Python May 17th, 2009
Replies: 5
Views: 235
Posted By gotm
I did that and now there's another error in line 102 (lines switched around cuz I kinda reformatted the whole thing). Ugh I hate these elif errors!


#!/usr/bin/python



import os.path
Forum: Python May 17th, 2009
Replies: 5
Views: 235
Posted By gotm
Ok I restructured things around a little bit and that first elif error went away but now I have another one!!!


#!/usr/bin/python

import os.path

#nxn board, in this case n = 10
n = 10...
Forum: Python May 17th, 2009
Replies: 5
Views: 235
Posted By gotm
It keeps giving me this elif syntax error in line 103 and I have NO idea where it's coming from. UGH!!!


#!/usr/bin/python

import os.path

#nxn board, in this case n = 10
n = 10
#will hold...
Forum: Java May 1st, 2009
Replies: 1
Views: 586
Posted By gotm
It keeps giving me this exception when it seems like I am adding a choice to my choices vector, and I don't know why.

Here is that snippet of code. If you need more I can provide it.

Thanks...
Forum: Python Apr 22nd, 2009
Replies: 2
Views: 229
Posted By gotm
Oh, and apparently my blocked function is not recursive? I thought it was, but it needs to be, so any help I'll take :) If not though that's fine too.
Forum: Python Apr 22nd, 2009
Replies: 2
Views: 229
Posted By gotm
So here is my program:

#!/usr/local/bin/python
#Scott Landau
#CS 380
#Assignment 1 Programming Portion in Python
#Created - 4/6/09
#Last Edited - 4/22/09

import pdb
Forum: Python Apr 21st, 2009
Replies: 13
Views: 617
Posted By gotm
Honestly, this was an assignment. I would not have lied if someone asked that in the first place. I like this forum though because I always try my assignments to the best of my ability beforehand....
Forum: Computer Science Apr 20th, 2009
Replies: 0
Views: 327
Posted By gotm
backTrack ( stateList )
======================
state = first element of stateList
if state is a member of the rest of stateList, return 'FAILED-l
if deadEnd?(state) return...
Forum: Python Apr 10th, 2009
Replies: 13
Views: 617
Posted By gotm
How come this just hangs, after debugging I found it never returns True for precondition even though it should on the very first go around....ugh!!!

#!/usr/local/bin/python
#Scott Landau
#CS 380...
Forum: Python Apr 8th, 2009
Replies: 5
Views: 273
Posted By gotm
I did test the code using print statements. I also debugged it and stepped through my while loop into functions hoping I would find the problem.

I know when the problem hits, just not exactly what...
Forum: Python Apr 8th, 2009
Replies: 5
Views: 273
Posted By gotm
I know it's a problem with either my blocked() or precondition() functions, I just don't know which one and what the problem is.
Forum: Python Apr 8th, 2009
Replies: 5
Views: 273
Posted By gotm
#!/usr/local/bin/python
#Scott Landau
#CS 380
#Assignment 1 Programming Portion in Python
#Created - 4/6/09
#Last Edited - 4/7/09

#n is going to be equal to 4 for this queens problem.
n = 4
Forum: Python Apr 7th, 2009
Replies: 3
Views: 309
Posted By gotm
#!/usr/local/bin/python
#Scott Landau
#CS 380
#Assignment 1 Programming Portion in Python
#Created - 4/6/09
#Last Edited - 4/7/09

#n is going to be equal to 4 for this queens problem.
n = 4
Forum: C++ Dec 3rd, 2008
Replies: 3
Views: 366
Posted By gotm
Thank you so much that fixed it. I have one more question though. The loop after that section where I am writing to the file. When the program finishes, and I looked at the file, it has one line with...
Forum: C++ Dec 3rd, 2008
Replies: 3
Views: 366
Posted By gotm
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <sstream>
#include <stdio.h>
#include <time.h>

using namespace std;
Forum: Assembly Oct 23rd, 2008
Replies: 5
Views: 1,863
Posted By gotm
Is there any place that has instructions for me to be able to set this up? I know running g++ on a MIPS platform would give me the code easy, but setting up a cross platform compiler seems very...
Forum: Assembly Oct 23rd, 2008
Replies: 5
Views: 1,863
Posted By gotm
The Assembly that is outputted from doing this is not MIPS. It's like very confusing to look at and work with and I'm not sure how it really relates to MIPS code at all.

I did attempt this already...
Forum: Assembly Oct 22nd, 2008
Replies: 5
Views: 1,863
Posted By gotm
I want to convert two C++ programs into MIPS assembly. Both programs compute if a given integer is prime or not. They both contain the same main() pretty much, but one uses an iterative function...
Forum: Python May 14th, 2008
Replies: 2
Views: 378
Posted By gotm
i am completely stumped at how to create this program. can anyone help out? here are the guidelines.

Introduction

Perhaps in no other sport does statistics play as major a role as in the game...
Showing results 1 to 33 of 33

 


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

©2003 - 2009 DaniWeb® LLC