Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: _uj

Page 1 of 57 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    24
    Views
    2,360

    Re: which loop is faster?

    [deleted abusive comment]
  2. Replies
    24
    Views
    2,360

    Re: which loop is faster?

    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...
  3. Re: binary_search with return position and predicate

    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....
  4. Replies
    24
    Views
    2,360

    Re: which loop is faster?

    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...
  5. Replies
    24
    Views
    2,360

    Re: which loop is faster?

    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...
  6. Replies
    24
    Views
    2,360

    Re: which loop is faster?

    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...
  7. Thread: Linux - why?

    by _uj
    Replies
    10
    Views
    680

    Re: Linux - why?

    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...
  8. Replies
    6
    Views
    2,081

    Re: When do we need an abstract class?

    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...
  9. Thread: From C# to C++

    by _uj
    Replies
    4
    Views
    544

    Re: From C# to C++

    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...
  10. Replies
    8
    Views
    750

    Re: Multiple Random Sequences

    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.
  11. Replies
    9
    Views
    3,348

    Re: wxwidgets or fltk or other?

    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++".
  12. Replies
    10
    Views
    1,807

    Re: Multi-inheritance Polymorphism

    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...
  13. Thread: C++ Or Java?

    by _uj
    Replies
    15
    Views
    1,328

    Re: C++ Or Java?

    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.

    Reading SICP...
  14. Thread: C++ Or Java?

    by _uj
    Replies
    15
    Views
    1,328

    Re: C++ Or Java?

    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....
  15. Replies
    16
    Views
    2,203

    Re: Binary Search Problem

    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...
  16. Replies
    1
    Views
    8,650

    Re: List = missing token?

    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....
  17. Re: how do i pass a value into a function and return an operation done on it

    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,
    ...
  18. Replies
    21
    Views
    3,513

    Re: memory leak in my memset usage?

    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...
  19. Replies
    21
    Views
    3,513

    Re: memory leak in my memset usage?

    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...
  20. Replies
    21
    Views
    3,513

    Re: memory leak in my memset usage?

    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...
  21. Re: Please help how to create a C++ stl map that takes a comparison function?

    I find this book to be of great help on how to use the C++ standard library,

    http://www.josuttis.de/libbook/index.html

    But note that it's from 1999 and I'm quite sure there will be a new...
  22. Replies
    1
    Views
    1,240

    Re: User control in java

    Don't double-post,

    http://www.codeguru.com/forum/showthread.php?t=471277
  23. Replies
    3
    Views
    5,746

    Re: Is User control possible in java

    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...
  24. Replies
    16
    Views
    2,203

    Re: Binary Search Problem

    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...
  25. Replies
    13
    Views
    1,609

    Re: unused static variable

    Here's a critical review,

    http://www.tilander.org/aurora/2007/10/static-initialization-in-c.html
Results 1 to 25 of 1410
Page 1 of 57 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center