Type: Posts; User: _uj
Search took 0.11 seconds.
March 3rd, 2009, 09:15 PM
[deleted abusive comment]
March 3rd, 2009, 05:30 PM
And what exactly is the difference between the bytecode in a class file and "assembly language" in your opinion?
There is no difference. Bytecode is the assembly language of the JVM. You can even...
March 3rd, 2009, 12:34 PM
A standard solution to check for proximity is to overlay a coarse-grain pixel coordinate system over the vertex coordinate system.
Say the 5% difference is dx, dy in the vertex coordinate system....
March 1st, 2009, 10:59 AM
There are more than one Java compiler vendor. IBM is one example. And Eclipse has it's own built-in Java compiler. But you would be wrong even if there were just one supplier of Java compilers. This...
March 1st, 2009, 10:33 AM
Well you claimed this (about a "true" compiled language),
"There is no determination as to what two pieces of similar code will boil down to at the object code level, since every compiler vendor...
March 1st, 2009, 09:39 AM
This is complete nonsense.
There are no "templates" a Java compiler must use when it lays down bytecode (the assembly language of the JVM). A Java compiler is free to use the available bytecode...
March 1st, 2009, 08:58 AM
People draw identity from brands. To be someone you drive a certain car, wear certain clothes and use a certain operating system. By claiming to be using and liking Linux people hope to be admired as...
February 24th, 2009, 05:09 PM
First of all you don't need abstract classes. But if you do use them your code becomes more general. General code is the objective of abstract classes.
If you use TwoDimensionShape variables in...
February 24th, 2009, 04:41 PM
Well, the obvious hasn't been stated - use Java.
It's portable between most operating systems and even development systems are portable (for example Eclipse). If you're familiar with C#, it's...
February 24th, 2009, 04:36 PM
You get that by seeding the random generator.
A seed is a number and each seed will produce the exact same sequence of random numbers.
February 24th, 2009, 04:31 PM
I think fltk will get a boost because it's used as model GUI in a new book by Stroustrup (founder of C++). The book is called "Programming, Principles and Practices using C++".
February 24th, 2009, 04:23 PM
No, static_cast won't suffice.
An upcast is always type-safe. If you don't upcast explicitly the compiler will check that it's a valid upcast for you.
But if you do upcast explicitly you...
February 22nd, 2009, 01:03 AM
That's why I suggested Java with SCJP. If you learn Java to the level of the SCJP you have a good enougth grounding in computing and an "exam" with some credit to show an employer.
February 21st, 2009, 12:35 PM
In that case I suggest you pick Java. To get some structure in you learning effort I suggest you aim for the SCJP (Sun Certified Java Programmer) exam. In your situation it would give you an edge....
February 21st, 2009, 12:20 PM
Whining and blaming others for your shortcomings won't get you anywhere. Some people just aren't cut out to be programmers. They always end up struggling with trifles for days and weeks. For your own...
February 21st, 2009, 12:02 PM
It's not quite clear what your problem is. But here are a few pointers.
First, you cannot store primitives in Java collections. What you need to do is to store the corresponding wrapper class....
February 21st, 2009, 01:20 AM
I don't know what's the exact problem is but when you do Vbuy(50) you don't note the change.
Instead later when you want to know what the change was you do this calls,
February 21st, 2009, 12:58 AM
Well, if some piece of code leaks memory it's a bug and you should contact the provider.
In this case it may be that the first call to socket allocates some global data which is then reused in...
February 20th, 2009, 10:55 AM
Well, it's bad C++ code but I guess it's passable C code (The Linux kernel is writen in C).
Still, "nulling" a stack-allocated C struct cannot leak anything unless the struct holds some pointer to...
February 20th, 2009, 09:43 AM
It's bad coding. You shouldn't "null" a struct like that. Use a constructor instead, or an initialization method.
Not that I think you actually have a memory leak. It's probably just that the...
February 20th, 2009, 06:52 AM
I find this book to be of great help on how to use the C++ standard library,
But note that it's from 1999 and I'm quite sure there will be a new...
February 20th, 2009, 04:27 AM
February 20th, 2009, 02:30 AM
If you write a user control using Swing (as has been suggested) you can use it in any Java application with a Swing based GUI. Your user control will work as an extension of Swing.
As long as you...
February 20th, 2009, 02:02 AM
Just consult any standard textbook on algorithms & data structures, or search the internet (like the link I provided above).
A binary search isn't something you code yourself. It's a standard...
February 20th, 2009, 01:50 AM
Here's a critical review,
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.