Forum: Oracle 19 Days Ago |
| Replies: 1 Views: 404 I am just starting to learn sql and have to questions from my homework assignment.
The first is this:
Write a query which will project the average rental price and number of such videos for videos... |
Forum: Java May 21st, 2009 |
| Replies: 8 Views: 332 I expect it to return where in the word the letter is. |
Forum: Java May 21st, 2009 |
| Replies: 8 Views: 332 What the user enters in the JTextField is stored to the variable fine, I out put that variable just a couple of lines later. But when I test it in the indexOf() or contains() methods, it does not... |
Forum: Java May 21st, 2009 |
| Replies: 2 Views: 209 Hey,
I am trying to find a way to limit how many characters a user can enter into a JTextField.
Does anyone know how to do this?
Thanks! |
Forum: Java May 20th, 2009 |
| Replies: 8 Views: 332 Hello,
I am having problems with indexOf() and contains() they work if I put letters in the code to test, but I want it to test what the user enters. And that is not working. The user enters a... |
Forum: C++ Apr 29th, 2009 |
| Replies: 2 Views: 226 I wrote some of it. I did use a debugger, and still couldn't figure it out. I got it down to shortpath[0] is being set to 0 in the updatepaths() method though. |
Forum: C++ Apr 29th, 2009 |
| Replies: 2 Views: 226 Hey,
So I am having this problem with this code. I think the problem is that shortpath[0].distance is being set to 0, and so never going into the if statement of updatepaths() therefore messing up... |
Forum: C++ Apr 29th, 2009 |
| Replies: 0 Views: 172 NOTE:This is a correction from my previous post.
Hey,
So I am having this problem with this code. I think the problem is that shortpath[0].distance is being set to 0, and so never going into the... |
Forum: Java Apr 7th, 2009 |
| Replies: 5 Views: 342 These are the packages:
sun.audio.AudioPlayer;
sun.audio.AudioStream;
sun.audio.AudioData;
Thanks for your help! |
Forum: Java Apr 7th, 2009 |
| Replies: 5 Views: 342 it was thrown here: myBackgroundMusic = new AudioStream(new FileInputStream("youtube - gift of gab - way of the light.wav"));
myData = myBackgroundMusic.getData();
myLoop =... |
Forum: Java Apr 7th, 2009 |
| Replies: 5 Views: 342 Hello, this code is throwing and IOException and FileNotFoundException and I am having trouble figuring out why. Where exactly does the song need to go in order for the program to pick it up? Also,... |
Forum: C++ Apr 2nd, 2009 |
| Replies: 1 Views: 690 I got it partly figured out, top was being set to NULL in the print() method. So I made it so top won't be NULL anymore.
But I'm still having a problem, I think because when I addToQueue in merge... |
Forum: C++ Apr 2nd, 2009 |
| Replies: 1 Views: 690 Hello,
I need to make this program sort the numbers entered with merge sort then print them. I am having trouble calling merge sort and getting it to print.
Here is the code:
#include... |
Forum: C++ Apr 2nd, 2009 |
| Replies: 5 Views: 423 oh your right! Sorry, I don't know my problem this week, I keep forgetting stuff like that! I usually remember to do that and put mergeSort:: in front of all of the methods! |
Forum: C++ Apr 2nd, 2009 |
| Replies: 5 Views: 423 Never mind, taking out the struct Item worked.
But now, you said that i need to change Queue sort to mergeSort sort, i did that and then an error was comming up in queue saying that addToQueue can... |
Forum: C++ Apr 2nd, 2009 |
| Replies: 5 Views: 423 So about the struct, should I completely take the struct out of mergeSort? I tried doing, and changed everything in mergeSort to Data that and it caused errors. Then I tried making Item derive... |
Forum: C++ Apr 1st, 2009 |
| Replies: 5 Views: 423 Hello,
I am having trouble understanding linked lists. I have to make this program that takes input, stores it to a queue, outputs that input, then sorts it using mergesort and outputs it again. ... |
Forum: C++ Feb 25th, 2009 |
| Replies: 0 Views: 665 Hello,
I am getting 8 8 8 7 7 8 6 7 8 9
as output when I enter 1 2 3 4 5 6 7 8 9 0 into this program. It is supposed to sort the numbers one through 10. I debugged it, and believe the problem is... |
Forum: C++ Feb 25th, 2009 |
| Replies: 3 Views: 3,333 I'm still having trouble with it. When I run my code, it outputs all the last number that I entered. |
Forum: C++ Feb 25th, 2009 |
| Replies: 3 Views: 3,333 I will check that out, thanks! |
Forum: C++ Feb 25th, 2009 |
| Replies: 3 Views: 3,333 Hello,
I have to make a program using heapsort, and am having trouble getting it. I think the problem is with either fixup() or buildheap(). I am having trouble understanding the syntax for both... |
Forum: C++ Feb 5th, 2009 |
| Replies: 6 Views: 463 Nevermind, I went to my profs office and he helped me figure it out. It was just some errors with the fill variable in the queue class. Thanks! |
Forum: C++ Feb 5th, 2009 |
| Replies: 6 Views: 463 Service: W R T
Service: E F J C H
Service:
Service: ╡ ▼ X R M
Press any key to continue . . .
That is with a little change to the code.... |
Forum: C++ Feb 5th, 2009 |
| Replies: 6 Views: 463 It is suposed to print the char, not the int. |
Forum: C++ Feb 5th, 2009 |
| Replies: 6 Views: 463 Hey, So I got this program all working except some of the output is weird pictures instead of letters. The first time it outputs it works fine, but after that it only partly works.
Here's the... |
Forum: C++ Feb 4th, 2009 |
| Replies: 3 Views: 404 Well, I think my main problem is getting it to work with two different queue objects...it works with just one. |
Forum: C++ Feb 4th, 2009 |
| Replies: 3 Views: 404 Hello, I have to make this program that has two queue's. It takes input from a file, and each line in the file has a number and character. If the number is a one, the character is stored in the... |
Forum: C++ Feb 3rd, 2009 |
| Replies: 11 Views: 392 |
Forum: C++ Feb 3rd, 2009 |
| Replies: 11 Views: 392 I added an integer after the = (the teacher said we could) and it worked. |
Forum: C++ Feb 3rd, 2009 |
| Replies: 11 Views: 392 oh wow that works! Why does that keep it from printing before? Like I thought since I have cout << in the while loop, it would print each time it goes through. Is it going through the whole file... |
Forum: C++ Feb 3rd, 2009 |
| Replies: 11 Views: 392 Here are the contents of the file:
R 3
T 5
W 1
A 4
* 3
M 5
B 1
E 1
F 2 |
Forum: C++ Feb 3rd, 2009 |
| Replies: 11 Views: 392 Hey, I am having trouble with the file I/O part of this program. It seems to start at the end of the files contents and not go into the while loop.
#include "queue.cpp"
#include <iostream>... |
Forum: Java Jan 14th, 2009 |
| Replies: 18 Views: 1,503 Nevermind, I figured it out. Thanks for all of your help! |
Forum: Java Jan 14th, 2009 |
| Replies: 18 Views: 1,503 Hey, have gone through the whole code looking for what could be causing the problem and have found nothing. |
Forum: Java Jan 14th, 2009 |
| Replies: 18 Views: 1,503 Thanks everyone! All of your comments actually did help me! |
Forum: Java Jan 14th, 2009 |
| Replies: 18 Views: 1,503 Ya, I was looking for a missing or extra one yesterday but couldnt find it. I guess I'll keep looking. Or I'm hopping he found it today at school. |
Forum: Java Jan 14th, 2009 |
| Replies: 18 Views: 1,503 Ok, let me explain: I started tutoring him last thursday, while he was in middle of this program. That is why the code is formatted badly, the comments arent good, and other various problems you... |
Forum: Java Jan 14th, 2009 |
| Replies: 18 Views: 1,503 Sorry it took me longer to post the errors, I didnt see that someone else had replied. |
Forum: Java Jan 14th, 2009 |
| Replies: 18 Views: 1,503 And heres the errors:
File: F:\Math.java [line: 384]
Error: F:\Math.java:384: illegal start of type
File: F:\Math.java [line: 384]
Error: F:\Math.java:384: <identifier> expected
File:... |
Forum: Java Jan 14th, 2009 |
| Replies: 18 Views: 1,503 I am tutoring him, and ya sometimes I need help. And I will make sure he understnds the solution. |