jwenting 1,905 duckman Team Colleague

Java didn't even exist when I was 14...

jwenting 1,905 duckman Team Colleague

I guess you want the sliders lined up nicely?
Try a BorderLayout with the labels in the WEST and EAST and the sliders in the CENTER.
You'll get a BorderLayout with in each of WEST, EAST and CENTER a JPanel with a GridLayout.
Each GridLayout has 3 rows and 1 column.
NORTH and SOUTH are empty, you could use those for for example a text describing the entire block or just leave them be.

Something like

contentPane = (JPanel) getContentPane();
        contentPane.setLayout(borderLayout1);
        contentPane.add(jPanel1, java.awt.BorderLayout.CENTER);
        jPanel1.add(jSlider1);
        jPanel1.add(jSlider3);
        jPanel1.add(jSlider2);
        contentPane.add(jPanel2, java.awt.BorderLayout.WEST);
        jPanel2.add(jLabel4);
        jPanel2.add(jLabel6);
        jPanel2.add(jLabel5);
        contentPane.add(jPanel3, java.awt.BorderLayout.EAST);
        jPanel3.add(jLabel1);
        jPanel3.add(jLabel3);
        jPanel3.add(jLabel2);

Swing UI design is often best done on a piece of paper using pencil and eraser.

jwenting 1,905 duckman Team Colleague

Turbo C is a very old DOS compiler.
250*250 just happens to be very near the maximum value for a 16 bit unsigned int which is what under DOS is used as a pointer.

Use a 32 bit compiler if you want to allocate larger arrays.

jwenting 1,905 duckman Team Colleague

what did I say? Did you even bother to read past the first few words or are you too lazy even for that?

jwenting 1,905 duckman Team Colleague

ah, it's that time of year again.
About right, few weeks before the Christmas vacation...

P.S. posting in all caps is unlikely to get you more help. In fact it's extremely annoying and I won't read any post written that way.
P.P.S. read the posting guidelines. We're not here to do your homework for you.

jwenting 1,905 duckman Team Colleague

View any website written in HTML or XML and you see SGML.
Both are subsets of SGML after all.

jwenting 1,905 duckman Team Colleague

show some of your creations and tell where they go wrong.

jwenting 1,905 duckman Team Colleague

there's a function to take a substring of a longer string. Find out what it is and how you use it.
Any manual, helpfile or other reference will tell you what to do.

jwenting 1,905 duckman Team Colleague

split it up into smaller, easier to comprehend chunks (iow, use what you learned about methods, classes, etc.).

That should unstick you probably.

If not think of how you'd do it without a computer. Write that down, then translate it into computer code one bit at a time (again, taking care to split it up into small chunks you can comprehend as a single entity).

jwenting 1,905 duckman Team Colleague

sounds like a homework assignment as you can find the answers in any good textbook dealing with the subject.

jwenting 1,905 duckman Team Colleague

many companies buy Gooooooogle listings. Do any search and the first several pages of results will typically be paid for.

jwenting 1,905 duckman Team Colleague

I remember seeing skateboards advertised and wondering what kids thought so much fun about them...

I remember my sister (who's one year younger than me) going crazy when she got a hoola hoop...

jwenting 1,905 duckman Team Colleague

hmm, isn't that showModal() ?

jwenting 1,905 duckman Team Colleague

yes, the title of this tutorial is slightly misleading.

jwenting 1,905 duckman Team Colleague

cracks should NEVER be used. Their use not only voids your license, they also openly show your support for software piracy.

jwenting 1,905 duckman Team Colleague

if you know the order of the data it's as simple as hardcoding the different input conversions in that order. For int that would be a call to atoi which converts a string into an int.
If not you'll have to write some code to detect what the input actually is and call the correct routine based on that...

jwenting 1,905 duckman Team Colleague

I assume you have 1 row of the array in each line of your input file, and the records (so columns in that row) are separated in some way that you can detect.

What you do is you use that criterion to split up the string you read (it reads a line at a time in my code) and fill the columns of your array with the resulting data.

So in pseudo code:

while no readerror on read line
split line
set columns
increase counter
wend
jwenting 1,905 duckman Team Colleague

read the parameter, strip away the -P, and use atoi on the rest of the string to convert it into an integer number.

jwenting 1,905 duckman Team Colleague

Before you can debug it you have to get it to compile.
Start with the very first compiler error, solve that one.

That alone may well solve a lot of other errors.

Your dispense function is seriously flawed. Not just will it generate quite a few compiler errors, the logic itself is seriously flawed. Depending on the value of change it will either (after solving the compiler errors) do nothing or enter an infinite loop.

jwenting 1,905 duckman Team Colleague

read carefully...
The compiler complains about not having a non-argument constructor in your superclass.

This error occurs when you create a constructor yourself in the class which DOES take arguments and then fail to call that constructor in your subclass constructors.

jwenting 1,905 duckman Team Colleague

go to http://www.java.com to download and install the browser plugin if you don't need the entire JDK.
Saves download time and is easier to install (fully automated in fact).

jwenting 1,905 duckman Team Colleague

any function that takes more than 3 arguments suggests heavily you would benefit greatly from encapsulation.

Think up some classes for starters.
What does it do, and what do you expect it to do?

Use a debugger to go through your program and check where it does something unexpected, that may well be the place you made a logic error.

jwenting 1,905 duckman Team Colleague

you should anyway use ifstream instead of fstream for reading...

Omitting all errorchecking, the following will read and echo lines from a textfile:

#include <fstream>
#include <string>
#include <iostream>
#include <iomanip>

int main()
{
  ifstream fs;
  fs.open("test.txt");
  string s;
  while (fs >> s)  cout << s << endl;
  fs.close();
}
jwenting 1,905 duckman Team Colleague

And of course make sure you keep track of the numbers already generated so you don't end up handing out the same one twice...

I'd also be very careful turning in the solution shown above as it's not C++ at all (though a decent idea to get you started on your own work).

Remember people, we're not here to do peoples' homework for them, only to help with specific technical details...

jwenting 1,905 duckman Team Colleague

Quite possible. What fileformat did you save them as on the mac?
And did you format the flashdrive on the mac? That could make it impossible for a PC to read (depending on the filesystem you used).

jwenting 1,905 duckman Team Colleague

not to mention that Google has already taken action against people selling GMail invites so mentioning they're free as a marketing trick is to say the least shady...

"pay $50 to get free advise" kind of shady :)

jwenting 1,905 duckman Team Colleague

OK, I give up. Running out of fingers and toes.
Only number I still know is: MANY ;)

jwenting 1,905 duckman Team Colleague

Ever more DVDs feature extensive copy protection. This may prevent them from being played in computers.

Just get a real DVD player, they cost next to nothing and the image quality is a lot better on a TV than on a computer screen using some software.

It of course makes it impossible to copy the DVD but you weren't planning that, now were you?

jwenting 1,905 duckman Team Colleague

Didn't you read the posts above yours?

Of course not. Reading is too much hard work, almost as much as coding.

In fact, even starting your own thread is too much...

jwenting 1,905 duckman Team Colleague

Looks like an entire classroom full of kids has gotten their homework assignment and are all posting it at the same time :)

jwenting 1,905 duckman Team Colleague

have you tried specific game development sites like gamedev.net?

jwenting 1,905 duckman Team Colleague

You're not following your instructions.
Where is your class?

jwenting 1,905 duckman Team Colleague

that's because MS Paint doesn't have a clue as to animateg gifs.
It can read them but will only see (and thus save afterwards) the first frame.

You'll need other software, check tucows for some.

jwenting 1,905 duckman Team Colleague

OK, you made a slight error if you wanted to count base 36.

20 it is.

jwenting 1,905 duckman Team Colleague

and the same goes for all other linux and most bsd distros.

jwenting 1,905 duckman Team Colleague

I think it's explained pretty well what the program should do. Just read more carefully...

jwenting 1,905 duckman Team Colleague

the execution model for a .com file under DOS is deprecated. It was a specific execution model using special memory models.
I don't think any modern compiler will support it.

jwenting 1,905 duckman Team Colleague

What you want to do is tantamount to a denial of service attack, don't do it.

As to the technicalities involved, there's no need to interact with a browser at all. Just use UrlConnection.

jwenting 1,905 duckman Team Colleague

what an idiotic rant that kid puts up...

If you don't know how to do things under Windows that doesn't mean Windows is bad kid.
It just means you're ignorant and may well be too lazy and/or stupid to even try to understand what you're talking about.

Now go back and play with your toys, try to get BGI to work under Linux and then come crying foul that that doesn't work either.

As to big graphics on Windows: the largest graphic I've so far used under Windows was a 6400x4500 (give or take a few pixels) file which was about 50MB on disk.
If that's not large enough I can tell you it's far from the limits of what Windows can handle. The current filesize limit due to using a 32 bit architecture (rather than 8 or 16 bit for DOS which imposes more limits...) is about 2 gigabytes.

jwenting 1,905 duckman Team Colleague

If you're so ignorant about Windows architecture and versions, what qualifies you to make statements like "p stands for patch"?
No need to politically correct anti-Microsoft rants here kid.

Windows 98 is by now 7 years old, it's end of life.
In other words: don't use it, use XP which is a lot more stable and secure (plus ever more software will simply not run or not run properly on Winddows 98).

As to your real question, I don't know the internal architecture of that software but it may well be built using .NET technology. It's a good platform to work on for building Windows applications and for the next Windows version will be the preferred architecture with only legacy support available for traditional programming models.

jwenting 1,905 duckman Team Colleague
#include<iostream.h>

Don't use that. It's 10 years out of date (I know, the oldest book that lists the proper way is about 10 years old).

void main()

Don't use, it's an abomination.

And lastly, don't do peoples' homework for them. It teaches them not to think and to be lazy and never learn the craft.
I don't want lazy poorly trained people as my future colleagues, it means I'll be doing more overtime doing their work and correcting their mistakes while they sit at home watching Wheel Of Fortune...

jwenting 1,905 duckman Team Colleague

don't give people complete programs, it stops them from thinking for themselves...

Or if you do include some subtle logic errors that they'll have to solve to make it work.

And if you do give sample code make it proper code.
void main() is an abomination, <iostream.h> etc. are deprecated

jwenting 1,905 duckman Team Colleague

you mean you want to print an octal representation of a decimal number?
Check out your language reference for itoa.

jwenting 1,905 duckman Team Colleague

Determine the top corner of the component you use to display the image and use those as an offset.
For example if the image is displayed from 100,100 on your application window and your mouse coordinates are 150,150 your coordinates in the image would be 50,50 (or was that 49,49 ...).

Mind this is just an example, I haven't checked if the coordinates in either case are calculated from the top left corner of the application window (some libraries have a tendency to calculate from the bottom right corner in which case you need the window size as well to calculate another offset to determine the top left corner).

jwenting 1,905 duckman Team Colleague

Show what you have and tell what goes wrong.
You're saying you've trouble getting it to compile so you have some sourcecode already...

We're not here to write your software for you, you'd never learn anything except to come begging for more and more...

jwenting 1,905 duckman Team Colleague

Linux is a Unix clone (more specifically an SVR4 clone), DOS is derived from CP/M.
Windows is built on DOS (yeah I know there never was a true 32 bit DOS but the command architecture survives to this day).
The commands to some extend are similar but the philosophies are completely different.

I picked up DOS by reading an IBM command manual, Unix required a 3 day course by a guru and I'm lobbying to get funds to enroll in the followup course that goes beyond the basics.

jwenting 1,905 duckman Team Colleague

that is likely not what was intended, as it shows a separate messagebox for each element of the array :)
better would be something like

StringBuilder builder = new StringBuilder(p.length);
for (int i=0;i<p.length;builder.append(p[i++])) builder.append("\n");
JOptionPane.showMessageDialog(null, builder.toString(), "Printing results", JOptionPane.INFORMATION_MESSAGE);

this will put each element of the array onto its own line.

When using Java versions lower than 1.5 use StringBuffer instead of StringBuilder.

jwenting 1,905 duckman Team Colleague

that's likely the problem. There's only 1 possibility for that not to be an infinite loop in which case the loop terminates immediately.
It's also an empty loop...

Most likely the semicolon shouldn't be there and some braces were forgotten.

jwenting 1,905 duckman Team Colleague

Enlighten me: if you knew in advance it was so easy why even bother asking and not just think about it yourself and get a solution?

jwenting 1,905 duckman Team Colleague

run it in the debugger, see what happens.
Set some breakpoints and watches and step through your code.