jwenting 1,905 duckman Team Colleague

setSize has little effect for most controls, it's mainly there to enable resizing of entire windows (and might have been better implemented at a different level in the class hierarchy), you're not supposed to control the size in pixels of user interface controls in Java as they're controlled by the layoutmanager.
This is to make sure it looks decent on whichever operating system your application may run on.

jwenting 1,905 duckman Team Colleague

reading BMP is easier to implement as it's a non-compressed format.
But for Java there may well be readymade libraries to read JPEG where BMP support is likely lacking.
See http://www.wotsit.org for file format descriptions (many of them with sample code in usually C).

jwenting 1,905 duckman Team Colleague

your teacher was quite clear. You're going to have to use a piece of artificial intelligence and probably genetic algorithms.
Recognising letters in a bitmap is a standard example of that and explained in quite a few tutorials about neural nets and genetic algorithms.
If you have an assignment at that level you should be able to do your research and will have had classes explaining what those are and how to write them.

jwenting 1,905 duckman Team Colleague

yes there is. But you'd need permission from the owners to use it on your own site/intranet/whatever anyway so easiest way is to contact them and ask if you may use it and if they'd be so kind to send you a copy if you may.

jwenting 1,905 duckman Team Colleague

Contact BEA Systems to buy the product if you didn't do so and want to use it.
Or just follow the installation instructions correctly if you have bought it and have a license file to install.

jwenting 1,905 duckman Team Colleague

so parameterise the whole thing to take a number n instead of using a fixed number of iterations...

jwenting 1,905 duckman Team Colleague

she said it shud b easier.

I doubt she said that, teachers are not known for using crappy text messaging shorthand when speaking to their pupils.

Here is wat i gotta do in my next assinement.

So go out and do it. By just posting it here and waiting for someone to do it for you you're not going to learn anything, and we're not going to do it for you and get a lazy know-nothing as a future colleague who only passed his exams through cheating.

jwenting 1,905 duckman Team Colleague

rather cold and inpersonal don't you think, sending her a text message instead of telling her in person after you give her a kiss (some flowers also do wonders)?

jwenting 1,905 duckman Team Colleague

Narue is not so much agressive as frustrated with the lack of effort by many (especially younger) people in this world to even attempt to solve their own problems, an attitude I can very much relate to.

But then we're both professionally employed in this profession and have to work with the end result of an educational cycle in which such lack of effort gets people degrees and diplomas which in turn get them hired to be our colleagues, saddling us with the burden of doing their work to get projects completed.

jwenting 1,905 duckman Team Colleague

Borland C++ 5.4 (which ships with BCB4) and 5.5.1 both indeed allow it (both are 6-8 years old by now).
Don't have any others installed here at the moment (VC++ 2005 will go onto this machine in about 2 weeks).

You're indeed most likely getting namespace clashes. Remove the using namespace std; and replace it with explicit namespace references and that may well be gone.

BCC32 has divides in its includes, but it's a template struct taking 3 parameters instead of 2, thus making the function defined in this code sample distinct from the one in the standard library as BCC32 knows it.

Then again, I can't find a reference to <functional> in any of the header files called directly or indirectly by this sample in the headers as supplied by BCC32, so the compiler would never find a clash.

jwenting 1,905 duckman Team Colleague

NullLayout is never recommended except on platforms where there is no other layout manager available (maybe some mobile platforms).

jwenting 1,905 duckman Team Colleague

as long as a class is on the classpath java can find it.
In your scenario your class isn't on the classpath.

jwenting 1,905 duckman Team Colleague

see the Sun website.
You buy an exam voucher from Sun, then with that voucher go (online, phone, or visit them) to Prometric (they're the company handling the actual exams).
There you make an appointment for a specific time and place to visit one of their offices to take the exam.
The exam itself is performed on a computer in what is essentially a classroom. The supervisor will take your voucher and check whether the code on it matches the code on their appointment sheet. They'll also check your ID (you need 2 pieces of ID, one of which must be a government issued photo ID like a passport) to see whether you're indeed the person who should take the exam.
Then they log you in on the assigned computer.
After a short explanation of how the software works and a short survey you get presented with the first question and the timer starts.

When you're done you confirm that to the software and it calculates your result. You will get a scoresheet on your screen which will also be printed for you. The supervisor will give you the scoresheet and you go home.
If you passed you will get your certification paperwork and stuff in the mail at the address you supplied when signing up a few weeks later.

jwenting 1,905 duckman Team Colleague

you have absolute control over the way the components are displayed in relation to each other.
You have very little control over how (what size and visual style) they're displayed at.

This is deliberate to enable the JVM to make it look decent on different operating systems that have different ways of doing things.
If you go and set that an input control is X pixels by Y pixels with a border of Z pixels that may look great on your Windows machine but completely crappy on a Mac or X terminal.
It may even be impossible to render there at all at that size.

jwenting 1,905 duckman Team Colleague

the JVM determines component spacing and sizing at runtime. It's pretty much out of your hands.

jwenting 1,905 duckman Team Colleague

yes, and currently working on the next one.
http://www.sun.com/training/catalog/courses/CX-310-252A.xml

jwenting 1,905 duckman Team Colleague

yes and no. It's similar in ways, different in other ways.

jwenting 1,905 duckman Team Colleague

Lingua Latina non est.

jwenting 1,905 duckman Team Colleague

You don't say what happens, nor what's supposed to happen.
Then you say you can't be bothered to be more specific.

jwenting 1,905 duckman Team Colleague

no, the best way is for you to think about your problems yourself.
If you're too lazy to even try to explain what is going wrong why should anyone go to the effort (especially unpaid) to analyse your problems for you?

jwenting 1,905 duckman Team Colleague

check the 1.5 javadoc, especially for the Collections API. It's full of it ;)
The new version of the JLS also mentions it (if it's out by now), so does any recent Java book worth the paper it's printed on.
Then there's a load of articles all around the net.

jwenting 1,905 duckman Team Colleague

Can you write regular English so older people can understand what you're writing?

jwenting 1,905 duckman Team Colleague

This is more of a question,since i don't really no myself. But it looks as if you are using syntax from c++. The < > symbols would indicate use of templates.

Since java does not support the use of templates this would be illegal?

:-|

Actually, it's called generics and it's been supported in Java for a year or so in classfile version 49.0 (compiler version 1.5, runtime version 5.0).

jwenting 1,905 duckman Team Colleague

Figure out how you do it on paper, then figure out how to translate that to instructions for the computer.

If you're after numeric results that's rather straightforward, if you want symbolic results remember that there are rather expensive programs that have taken teams of very smart people a long time to create.

jwenting 1,905 duckman Team Colleague

Sure it's possible, you just need to implement an algorithm for it.

jwenting 1,905 duckman Team Colleague

you're not importing your Stack class so I assume it's in the same package, but is it actually there?

jwenting 1,905 duckman Team Colleague

Compiling that code yields something like a hundred compiler errors.
Start at the top of the list and resolve them one by one.

jwenting 1,905 duckman Team Colleague

You should have no problem, assuming the other box has the classfile on its classpath of course.

jwenting 1,905 duckman Team Colleague

Christian, my philosophy is that if you don't care to use proper natural language you're not going to use computer languages properly either, and all the evidence I see bears that out.
Therefore my advise to learn proper natural language is ultimately aimed at improving the OPs understanding of computer languages as well.

jwenting 1,905 duckman Team Colleague

it's actually quite easy to code, certainly everything except the display should be a piece of cake.

jwenting 1,905 duckman Team Colleague

if your dad's a dentist he can afford to pay for such a program. He can also afford a teacher to teach you proper English.

jwenting 1,905 duckman Team Colleague

This is a Tomcat-specific issue with the Apache JSTL implementation. If you don't use a 2.4 web.xml, the EL expressions don't get evaluated in the JSP.

Be sure to never tell that to the 30 or so Tomcat instances running with our customers.

jwenting 1,905 duckman Team Colleague

he's trying to trick people into doing his homework for him.

jwenting 1,905 duckman Team Colleague

use STL instead, this is a job for vector.
Stroustrup himself advises against using arrays whereever STL can be used instead.

jwenting 1,905 duckman Team Colleague

The Express edition together with the platform SDK will likely be enough to allow all that.

Personally I'm thinking seriously of buying the entire Visual Studio standard edition. It's cheap, and you get all the documentation (plus C# and stuff which I really want to experiment with).

jwenting 1,905 duckman Team Colleague

if you can't ping the machine you can't get a network connection to it.
That's bad for you, but doesn't mean the server is down. It could be a firewall blocking the ping request somewhere which itself can either mean you're not allowed to access the machine or the machine ignores ping requests.

Send the server a request for whatever it's supposed to do. If you get a response back (assuming the server is supposed to respond) it's working.
And I assume you do log incoming traffic?

jwenting 1,905 duckman Team Colleague

You'll need a lib-file for the DLL to satisfy your linker. There should be a tool with your distribution to create that.
Then you're likely going to want a headerfile containing the declarations of the functions in the DLL, you're likely having to write that yourself (though some library importers I think spit them out for you).

jwenting 1,905 duckman Team Colleague

The express edition when you want it on CD costs money. Money to pay for making the CD, the box, etc., and for shipping it to the store.
Then the store will want some money for their effort.

I don't see a pro edition of Visual C++ 2005, only the Express and Standard versions.
So for the Pro version you're getting the entire Visual Studio (including C#, VB, J#). That's why the extra cost.
In addition to the standard version you're getting tools for developing Windows CE applications, remote debugging support, XSLT debugging, and "visual tools for Microsoft Office" (whatever that is).

All unrelated to C++ development unless you want to write for PDAs.

jwenting 1,905 duckman Team Colleague

read the language documentation.

jwenting 1,905 duckman Team Colleague

you should start by learning C++.

and by that I mean learn a LOT more about it than you get in a highschool course.

jwenting 1,905 duckman Team Colleague

well, there is no isDigit method in String, which is what you're calling.
There is a static one in Character, which I guess you're thinking you're calling.
But you need to do that differently, something like Character.isDigit(ch)

jwenting 1,905 duckman Team Colleague

add the compiler flags "-source 1.4 -target 1.4" (without the quotes) when compiling and your 1.5 compiler will behave like it was a 1.4 compiler and spit out classfiles for 1.4 runtimes.

jwenting 1,905 duckman Team Colleague

if you read the book correctly you'll find out that the grade you're working with here is a single double per student, which is calculated from the total series of grades before being stored in the vector.

Keeping 2 vectors in synch with each value in one relating to exactly one value in the other shouldn't be a problem.

jwenting 1,905 duckman Team Colleague

every C++ compiler is also a C compiler so you should have no problem.

jwenting 1,905 duckman Team Colleague

yes, the assignment is really about learning what a stack is and how to write and use one.
So you'll have to do that.

I was just giving that other solution as an example of how the problem could be solved in one line making use of the full power of the language.
Thinking outside the box can help in real life, when in education it can indeed get you into trouble.

jwenting 1,905 duckman Team Colleague

Debug will create one too, but somewhere else and including debug information (therefore likely larger and maybe slower).

jwenting 1,905 duckman Team Colleague

it can be done easily, though the libraries needed are pretty much platform specific as they depend on operating system calls which themselves rely on hardware calls.

Basically you have a loop which polls the keyboard (or waits for input from the keyboard) and quits when input is received (or calls a function when input is received depending on that input).

jwenting 1,905 duckman Team Colleague

why go to that trouble? Saves a few CPU cycles by spending a few ;)
I'd go with that solution if on a severely memory stressed system and/or when having to process extreme amounts of data, in which case the memory savings might be (relatively) significant.
But normally I'd say start out with the simplest possible solution, if that's good enough there's no need to complicate things further.
And yes, some teachers hate such an attitude. Did it once applying a method for some physics calculation I'd learned elsewhere to an exam question designed to test another method (though not mentioning it had to be used).
Was done in 5 minutes on a question that should have needed 20. Teacher wasn't pleased but had to credit me with a correct answer and method of reaching it ;)

mind I forgot some braces in that example, correct code is

System.out.println(str + " is " + ((!str.equals((new StringBuilder(str)).reverse().toString()))?"not ":"") + " a palindrome");

which you'd probably want to turn into a method rather than typing it out all the time.

jwenting 1,905 duckman Team Colleague

do you add your JInternalFrames to the contentpane for your application?
If you don't I guess they end up as children to the desktop rather than the application.

jwenting 1,905 duckman Team Colleague

did you set the parent frame correctly?