Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 37 of 37
Search took 0.01 seconds.
Search: Posts Made By: elford
Forum: C# Mar 11th, 2006, 12:50 PM
Replies: 6
Views: 314
Posted By elford
Well, my program runs sucessfully using a...

Well, my program runs sucessfully using a workaround with the Clone method, so for the time being, I need to leave it at that. There's still major other portions of it that need to get done, so I...
Forum: C# Mar 9th, 2006, 5:05 PM
Replies: 6
Views: 314
Posted By elford
Quick sort is is a different class completly. ...

Quick sort is is a different class completly. The var "data" is encapsulated in that class as a static var that all the other quick sort methods modify when doing the sort. I don't see why the var...
Forum: C# Mar 8th, 2006, 6:52 PM
Replies: 6
Views: 314
Posted By elford
Parameter Mutation

I have a static method (quicksort) that looks to me like it should return a new set of data thats sorted, but should not change the org. data set.


//dataCopy is a...
Forum: Java Jan 8th, 2006, 7:56 PM
Replies: 4
Views: 188
Posted By elford
If you got it out of a book, then it's prob...

If you got it out of a book, then it's prob designed for a 1D array, hence why it dosen't work. It looks like that sorting algorithm is BubbleSort, which isn't the best sorting algorithm to begin...
Forum: Java Jan 8th, 2006, 12:05 AM
Replies: 4
Views: 188
Posted By elford
Why are you specifying a 0 index in the nested...

Why are you specifying a 0 index in the nested for loop?

if (intArray[0][j] < intArray[i][0]) {
temp = intArray[i][0];
intArray[i][0] = intArray[0][j];
intArray[0][j] =...
Forum: C++ Jan 6th, 2006, 11:56 PM
Replies: 11
Views: 464
Posted By elford
Do you know what an array is? I'd say maybe put...

Do you know what an array is? I'd say maybe put each "node" in the DNA sequence into an array (2 arays total, one for each sequence), and then have something that loops through the 2 arrays and does...
Forum: Java Jan 6th, 2006, 11:50 PM
Replies: 9
Views: 316
Posted By elford
I wasn't clear, and I made a mistake. It takes n...

I wasn't clear, and I made a mistake. It takes n time when doing insertions, not n^2. Figure that you start with a list of 5 nodes, and then you insert another node at the end (w/o the tail...
Forum: Java Jan 6th, 2006, 10:13 PM
Replies: 9
Views: 316
Posted By elford
The solution proposed by para does work. One...

The solution proposed by para does work. One small modification tho, my constructors had an error too

public SwipeInfo() {
head = null;
tail = null;
}
public SwipeInfo(SwipeInfoNode m)...
Forum: Java Jan 6th, 2006, 10:09 PM
Replies: 9
Views: 316
Posted By elford
Exactly it. In lists where order of the nodes...

Exactly it. In lists where order of the nodes matters, such as a queue, it allows you to insert in constant time, as opposed to looping through the list every time when you need to add at the end,...
Forum: Java Jan 6th, 2006, 3:30 PM
Replies: 9
Views: 316
Posted By elford
Linked list insertion at the tail

This is so simple, yet I can't understand why it won't work.

I'm trying to implement a linked list where insertions occur at the tail.

I have the constructors
public SInfo() {
head =...
Forum: Java Jan 5th, 2006, 12:53 PM
Replies: 15
Views: 356
Posted By elford
If you're looking only to access the method...

If you're looking only to access the method without instanting it, declare the method as static. If you have a reason for wanting the variables, see the other posts on this page.
Forum: Coder's Corner Lounge Jan 4th, 2006, 11:58 PM
Replies: 10
Views: 259
Posted By elford
Firefox compatibility is huge can of worms when...

Firefox compatibility is huge can of worms when it comes to FrontPage. One of my former employers redid their website while I was employed there with Frontpage. The site looks good in IE, but...
Forum: Coder's Corner Lounge Jan 4th, 2006, 10:25 PM
Replies: 10
Views: 259
Posted By elford
Agreed. I once used it doing a website because I...

Agreed. I once used it doing a website because I had it from Office XP. Let me tell ya, did I ever regret that decision...trying to do revisions later on with anything other that FrontPage was a...
Forum: Community Introductions Jan 4th, 2006, 10:07 PM
Replies: 13
Views: 364
Posted By elford
System.out.println("Greetings, fellow coders");

Greetings everyone,

I thought I'd just introduce myself around here since I've been asking a ton of questions lately.

I'm currently a soph CompSci major at a major research university in the...
Forum: Visual Basic Jan 4th, 2006, 7:46 PM
Replies: 43
Views: 963
Posted By elford
For small programs, I can see why someone might...

For small programs, I can see why someone might find them easier than loops, but if you're doing a project of any decent size (even as small as 100 lines), your code becomes an unintelligble mess...
Forum: Java Jan 4th, 2006, 7:41 PM
Replies: 24
Views: 592
Posted By elford
I agree. When I first started doing Java for a...

I agree. When I first started doing Java for a class, I started out on NetBeans, which is great because it's fairly simple to get started with and use.

After having more exposure to Java, i...
Forum: Java Jan 3rd, 2006, 7:07 PM
Replies: 6
Views: 241
Posted By elford
Curiously, do you have a specific reason for...

Curiously, do you have a specific reason for asking about the icons?
Forum: Java Jan 3rd, 2006, 7:06 PM
Replies: 6
Views: 241
Posted By elford
It's totally different in C++. When you compile...

It's totally different in C++. When you compile in C++, you wind up with an .out file (*nix) or an obj file (Windows). I'm not too familiar about C++ on Windows, but the .out file on Unix is...
Forum: Java Jan 3rd, 2006, 4:46 PM
Replies: 0
Views: 106
Posted By elford
Disposing windows

In my application, where the GUI is written in SWT, it is currently possible to close the main application window from the Windows task bar, yet the dialog windows the main window has spawned remain...
Forum: Java Jan 3rd, 2006, 4:36 PM
Replies: 6
Views: 241
Posted By elford
Some do, some don't. Most users don't know how...

Some do, some don't. Most users don't know how to launch a Java application on their system, and I think this is the reason. JAR files, which are essentially executable java zip files, on my system...
Forum: Java Jan 1st, 2006, 12:17 AM
Replies: 1
Views: 197
Posted By elford
Getting size of user's screen

Does anyone know how to get the size of a user's screen?
I'm implementing a SWT application, and I'd like to know the size so that I can calculate the mid-point of the screen, and use that info so...
Forum: C Dec 30th, 2005, 10:05 PM
Replies: 4
Views: 297
Posted By elford
OK, so I've installed the Eclipse C/C++ plugin. ...

OK, so I've installed the Eclipse C/C++ plugin. According to the FAQ, I need to still get gcc, gdb, and make. The gcc page refers to using Cygwin on a Windows machine, so I've downloaded and...
Forum: C Dec 30th, 2005, 6:50 PM
Replies: 4
Views: 297
Posted By elford
Making an exe file

If you're familiar with the Eclipse IDE for Java on Windows, there is a file called "eclipse.exe" that does nothing but display a splash screen and start the Java Virtual Machine to execute the...
Forum: Java Dec 28th, 2005, 4:40 PM
Replies: 3
Views: 171
Posted By elford
Are you sure that works for SWT? I'm not using...

Are you sure that works for SWT? I'm not using Swing.

I tried adding that to the Shell for my dialog (see below), but it's not a valid...
Forum: Java Dec 27th, 2005, 5:11 PM
Replies: 3
Views: 171
Posted By elford
How to disable Close button in SWT

Occasionally my SWT application must launch a dialog to get more information from the user. If the user clicks the "X" in the upper right corner, the program crashes because it is expecting that...
Forum: Java Dec 27th, 2005, 1:15 AM
Replies: 2
Views: 183
Posted By elford
Wait I see what's wrong, it needed a return value...

Wait I see what's wrong, it needed a return value on each branch of the if-else ladder; DUH!
Forum: Java Dec 27th, 2005, 1:13 AM
Replies: 2
Views: 183
Posted By elford
Is there anything wrong with this code?

I have the following code
private String okWidgetSelected(SelectionEvent evt) {
System.out.println("ok.widgetSelected, event=" + evt);
if (testRegGame() == false) {
String a[] = new...
Forum: Java Dec 26th, 2005, 11:33 PM
Replies: 4
Views: 227
Posted By elford
OK, I realize now that the date variable isn't...

OK, I realize now that the date variable isn't initalized when I try to set it's value...the date variable is only init in the open() method. date = new Text(dialogShell, SWT.NONE);

I guess the real...
Forum: Java Dec 26th, 2005, 11:27 PM
Replies: 4
Views: 227
Posted By elford
That could be, as I'm trying to set the date...

That could be, as I'm trying to set the date before opening the window on the screen, so it is possible that the date variable isn't initialized.

Let me post my code, and see if it helps. I am...
Forum: Java Dec 26th, 2005, 8:40 PM
Replies: 4
Views: 227
Posted By elford
using Text fields in SWT

In my GUI (developed using SWT), I have a Text field called date.

It appears in the window with this code
date = new Text(dialogShell, SWT.NONE);
date.setBounds(42, 49, 119,...
Forum: Java Dec 26th, 2005, 8:30 PM
Replies: 4
Views: 158
Posted By elford
It was the "throws" clause that it was choaking...

It was the "throws" clause that it was choaking on. I caught the exception and didn't need to throw it again. I removed the throws clause from the method and all was well.
Forum: Java Dec 26th, 2005, 5:44 PM
Replies: 4
Views: 158
Posted By elford
Actually, I tried that before posting. The...

Actually, I tried that before posting. The problem remains the same, except with the Eclipse error reading "Exception Exception is not compatible with throws clause in...
Forum: Java Dec 26th, 2005, 3:46 PM
Replies: 4
Views: 158
Posted By elford
Exception troubles dealing with GUIs

I've written an application that runs fine from a console, so I am now building a GUI on top of it.

When the user clicks on the "Run" button I provide, the GUI takes 3 strings (paths and file...
Forum: Java Dec 3rd, 2005, 11:17 PM
Replies: 1
Views: 131
Posted By elford
Never mind, it does work! It was putting the...

Never mind, it does work! It was putting the file somewhere I wasn't expecting.
Forum: Java Dec 3rd, 2005, 11:05 PM
Replies: 1
Views: 131
Posted By elford
Trouble writing to file

I need to get data out of my program and into a CSV file. For some reason, the output code that follows dosen't seem to work -- no file is created with the data being outputted. What am I missing? ...
Forum: Java Nov 25th, 2005, 12:12 PM
Replies: 2
Views: 148
Posted By elford
Smile It was partly that and part something else. I...

It was partly that and part something else. I forgot I needed to initalize every element in the array, or it would be pointing only to null.
Forum: Java Nov 24th, 2005, 9:10 PM
Replies: 2
Views: 148
Posted By elford
Stuck on using a Global array

I'm working on a program that deals with membership info and must use a global object array to store the data. The problem I get is a NullPointerException when I try to add data to the array for the...
Showing results 1 to 37 of 37

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:15 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC