Make sure the acceptButton[] array is global. If you declared and defined it in your constructor, then it won't be seen outside of that method.
Make sure the acceptButton[] array is global. If you declared and defined it in your constructor, then it won't be seen outside of that method.
Nice! Dual core opterons! Do you actually own the server???
Java IS NOT JavaScript.
JavaScript IS NOT Java.
I believe you can get the lable of the button:
JButton.getLabel();
that could be deprecated so you can also simply try:
JButton.getText();
BlueJ is the worst IDE out there. It doesn't even work properly. Sometimes it tells you that you have a syntax error when you don't. In order the fix that you have to click compile 900 times and it finally compiles without error. It also has trouble with comments and locks up at least once every use.
What exactly do you want us to do? We're not going to do your homework.
>were your intentions to just insult this guy and then blow him off?
*cough* *cough*, I suspect that is something she only likes doing with the hubby? ;)
[edit] like, maybe the wrong choice of word here[/edit]
That was a pretty dumb comment.
What's the problem? I assume it's with the output? You need to check the ascii ranges for viewable characters. There's no need to encrypt new line characters and those out of the viewable range.
I had the same thing happen to me. I swear I opened the home page but it took me to profile.php and said file not found. Not sure why it took me to that page.
That isn't right -- it just assigns the number 1000001 decimal to an integer. binary digits have to be converted.
My bad dragon. I assumed it was correct since it worked ;)
I think a lot of people join because I'm here.
At the rate you're going you'll have more enemies than friends.
#include <windows.h>
Beep(int, int);
One way would be to:
accept input as a string.
convert string into an int
convert int into a char (or cast int into a char if all you want to do is display it)
Yep it's pretty simple:
int main(int argc, char *argv[])
{
int x = 1000001;
cout << char(x) << endl;
getchar();
}
There's no relation. You can make about any object simulate a simple physics vector, but a C++ vector is just a container. If the name was different would you still think there's a relationship?
If you already know the syntax then do something mathematical that requires some thought and time to make. For instance: Maybe something simple to compute derivatives or an equation parser. A hex/binary spitter-outer is too simple in my opinion. (unless you are going to write the methods yourself, as I'm sure there are plenty available in ++)
No idea. I've never used the revalidate() for the whole content, but rather only for certain components. The only time I found it useful was when using a JTable and I needed to update the content inside of it. This also changed the size of the table.
Looks like you might have one to many curly braces.
I don't think that compiles without errors?
Wow. Your stupidity becomes more prevalent with each post. I know you're still pissed about me letting you know how stupid your other post is, but that's not reason to carry over into someone elses thread. If you have a problem, then PM me and stop your fagish whining.
You should check out my e-book called "Go Away".
:lol: What's ironic is his book is called "Become Hated".
>What gives you the right to be so harsh? You need to pay more attention in English class.
-Ummm ok? Thanx for that mom?
Don't be a hypocrite. You made a comment worse than I did except in a different context.
You gotta be joking right? It's simple stuff, I don't see what da problem is?
It's simple stuff just like the stuff you post.
Do your own homework kiddo:eek:
It's not my homework and I'm not a 'kiddo'.
I really don't care. If they want crappy work, then they can outsource it. Indians will work for dirt, but it takes 20 of them to do what one well paid American, Japenese, Canadian, or other person can do. It's not that they can pick it up quicker, they can't. It's all about the dough. The companies that are serious and want good work don't outsource. That doesn't mean you can't outsource some things. Half the tech support I've dealt with from India simply send back canned responses and can't speak english. That's what I find sad.
um i just starded macking a simple program and i want the user to input a number when it says enter a number then i want it to say that number *3 is, enter then the answer will appear here is what i have and i dont know whats wrong with it
#include <stdlib.h>
using namespace std;
int main(int argc, char **argv){
int k,n;
n = k*3;cout << "type a number";
cout << k << "times three is";
cin>>n;
system ("pause"); /* execute M$-DOS' pause command */
return 0;
)
You haven't even got the user input.
set up variables properly:
int k = 0;
int n = 0;
prompt the user:
cout << "type a freaking number --> ";
get the input
cin >> k;
multiply by three:
n = k*3;
then display the new result:
cout << endl << n;
Hi guys, I'm currently making a GUI which displays a graph. At the moment it reads coordinates within an array in the code:
public int datax[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
public int datay[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};I need it to take these coordinates from a txt file, which I'm having trouble with.
So far I've made it read in a txt file and output to a text area like this:
public void readFile() {
// Disable read button
readFile.setEnabled(false);// Dimension data structure
getNumberOfLines();
data = new String[numLines];// Read file
readTheFile();// Output to text area
textArea.setText(data[0] + "\n");
for(int index=1; index < data.length;index++)
textArea.append(data[index] + "\n");// Rnable open button
openFile.setEnabled(true);
}My code to plot the coordinates using datasets is this:
//Configure dataset
int n = 10;
Dataset dataset = new Dataset (1, 2, n);for (int k = 0; k < n; ++k)
dataset.set(0, 0, k, datax[k]);for (int k = 0; k < n; ++k)
dataset.set(0, 1, k, datay[k]);I need datax and datay to be read in from the txt file though which is formatted simply x val, y val [per line]
3, 4
2, 6
5, 9 etc..Even if it read the file into an array, then outputted this to the graph, that …
I have no skepticism. I know what you're doing and hopefully the moderators do too (You also know).
Amazing:
http://forums.digitalpoint.com/showthread.php?t=65194
http://bbs.fuckedcompany.com/index.cgi?okay=get_topic&topic_id=2351421
http://www.5staraffiliateprograms.com/affiliate-marketing-forums/showthread.php?t=1235
http://im4newbies.com/forum/-vp12386.html
http://www.affcommunity.com/becomehated-com-ebook-55-of-67-sale.3758.html?goto=lastpost
Simple google search brought up pages of YOU advertising your 'product' across hundreds of forums.
I read where this 'book' gives away some SEO and PR tips. Did you include spamming the crap out of forums? Half of the places you spam had the administration wise enough to see what you were doing and deleted your sad attempt of pretending to be a customer. You said it yourself in a billion other forums, you're just helping to market the product.
I know it is. I've seen this time and time before. Kind of weird that someone knew exactly where to show a review to your product. I think it's crap by the way.
Since you are using arraylist, use the contains() method to check if the entry already exists. If it doesn't, then add it.
Yeah right. You're the same person who posted the thread. It's probably your product and your pretending to be a customer.
MODERATORS: PLEASE CLOSE THIS THREAD AND DELETE THE LINKS IN IT. IS IT NOT OBVIOUS WHAT THIS PERSONS DOING?
If he didn't say how to do it, then why not use my two liner?
NICE WORK!!! You did his homework for him!!!!
It's supported by >= 1.5.
Anything written in 1.5 (no matter how the syntax is written) will not work on <= 1.4 machines. I've tried adding source flags and doing a bunch of other stuff and it never made it an actual 1.4 program. The JVM implementation details will always be different. So no, it will not work on older versions of java.
Create an executable jar file. There's no need for that other garbage.
I don't like being a posting wiz. Most forums allow you to have custom usernames when you reach like 1000 posts. I would like that, but I'm not the administrator.
Do you know the math behind it? If you know the math then it won't be very hard.
No, it's all the code you need. At least I wouldn't need to do anymore. Of course it's like you said, it probably wasn't his assignment.
Funny. I've got a gmail account and recieve hundreds of these things. I can easily decipher the phishers because I don't use my gmail account, and they talk like this:
Hello pleas
Enter. your'e password and whatyour usernames........
I send you eleventy hundred dollers i promise!
Have you even done any research? You can find billions of tutorials on creating applets.
Why are you worrying about finding the length when it's still an integer? Convert it to a string. You'll have to do so sooner or later until you decide to do it some hard way:
StringBuffer sb = new StringBuffer(string);
newstring = sb.reverse();
if (string.equals(newstring) )
{
//palindrome
}
all the code you need.
no I don't give extra points for sexual favours.
I had a really dirty comment for that, but it was a bit over the line so I'll leave it out to avoid a ban :cheesy:
p.s Go Server_Crash!!
I got numero 4. It's tupac.
doesn't seem like a logical solution to me, but then I'm used to scientific calculators with built-in equation editors ;)
True, but I don't think they wanted a full fledged multi operator calculator that follows PEMDAS.
It would be nice to write an equation parse, because there could be some stumbling blocks somewhere in there. Most people would write a parenthesis balancer first, but do you really need it?
1 + (2-5)
should be the same as:
1 + (2-5
without the parenthesis
A simple equation like:
5*2+5*4/45
might not be that bad, but I think the parenthesis would get me.
I don't need to have the product to tell it's a bunch of crap. Here's how you can get rich (like the maker of this product): Think of some dumb get rich scheme that really doesn't work and write a book about it or something. I gurantee customers and lots of money for you. After the customers realize it doesn't work then they will hate you. That's where the 'become hated' part comes in.
That's easy. Stacks are FILO so if you pop a parenthesis off, then at the oppposite position (the last) would have to be a parenthesis. Show a little effort and I can help more.
Drawing on the same surface as all the other crap will cause glitching and all kinds of crap. I suggest you extend JPanel in an external class and make your own definition for the drawing surface and then add it to the real jframe. That will make things much easier to maintain and will work how you want it to.
Get the first number
user clicks +... register that
Get the second number
Display addition.
If it's free then send it to me. I'll give my address if you PM. If it's really free i shouldn't be obligated to sign up for other garbage.
I've thought about writing one of those. I may just do it.
You know that getMonth() returns a number. What do your URL's look like??
Hey,
Am not that stupid....
I know the algorithm about how the programming should work...At the server side (PDA) that will serve the client (computer) requests:
1. A socket is opened and the machine listens for all clients at a particular port number.
2. Simultaneously the serial port of the device is also opened.
3. The data input stream created by the socket is connected all the way to the serial port. So any data stream that the socket receives is immediately sent out of the serial port. This is done a string at a time.
4. Once the data string is sent out of the serial port the machine is ready to receive another string of data from the client.
5. The steps 3 and 4 are repeated till the connection is closed by the client.
6. Once the connection is closed, the machine stops listening on the port number and
Simultaneously closes the serial port.
To start a new connection the server program will have to execute againProgramming the client –the desktop computer in order to send commands for the motor over the network involved the following steps:
1. Open a socket by creating a socket object
2. Create an output stream consisting of the commands for the control board.
3. Send the input stream over the network.
4. Close the socket when the application is completed.
The client program has …