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

Search:

Type: Posts; User: razzle

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: New to C++ and I need some help. (Not new to languages)

    That's right, we are comparing habits in this thread.

    And I do feel my habits are better then the competitions. Otherwise I wouldn't bother.

    Please feel free to put forward your arguments...
  2. Replies
    11
    Views
    309

    Re: looking for source crypter

    Why do you assume the OP is a beginner?
  3. Replies
    11
    Views
    309

    Re: looking for source crypter

    This book,

    http://www.amazon.com/Reversing-Secrets-Engineering-Eldad-Eilam/dp/0764574817

    is available as pdf file on the net.
    ...
  4. Replies
    16
    Views
    429

    Re: Sorting parallel arrays in C++

    You don't have to sort to find the min (or max) element of an array.

    You note the first element as the current min candidate. Then you scan the array and for each element check whether it's...
  5. Replies
    16
    Views
    541

    Re: question about sorting on bitstrings

    Just for the sake of it I've improved on the algorithm somewhat. It's based on the observation that probably not all subsets are actually used. So I remove the subsets that are not present in any...
  6. Thread: Wombat 1

    by razzle
    Replies
    3
    Views
    243

    Re: Wombat 1

    I've never heard about Wombat. It seems to be both a highlevel functional language and a CPU.

    I googled a little and came accross this,

    http://www.cs.colby.edu/djskrien/CPUSim/
    ...
  7. Replies
    16
    Views
    541

    Re: question about sorting on bitstrings

    Thank you for rewriting it in VS 2012.

    The string ending with a * is the 3-bit subset that served as template for the strings collected in each run.

    The numbers after : are the strings...
  8. Replies
    16
    Views
    541

    Re: question about sorting on bitstrings

    The binominal coefficient 18 over 3 tells how many different ways 3 bits can be set among 18 bits. It's 816.

    So one solution is to generate all 816 3-bit combinations and count which of these are...
  9. Replies
    2
    Views
    256

    Re: Which is the best?

    For general web server developments I think Java and C# are the best choises.

    I personally favor Java. It's very "popular",

    http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
    ...
  10. Re: New to C++ and I need some help. (Not new to languages)

    It demonstrates that you're not following your own rule.

    And even worse you don't seem to be clear about what's a statement in C++.

    You're trying to elevate your own habits to a general rule...
  11. Re: New to C++ and I need some help. (Not new to languages)

    Well, you came here with a bug you couldn't find. My suggestion will minimize the risk for it to happen again. Hopefully you're not an old dog already who cannot learn new tricks.
  12. Re: New to C++ and I need some help. (Not new to languages)

    Then I'm sure this is what your for-loops look like,



    for (
    int i=0;
    i<N;
    ++i)
  13. Re: New to C++ and I need some help. (Not new to languages)

    To avoid problems like this I always make a "one liner" out of simple if statements (lacking {}) like,

    if (hours <= 40) grossPay = hours * hourlyRate;

    Also note that 40 is an int whereas...
  14. Re: New to C++ and I need some help. (Not new to languages)

    if (hours <= 40);

    The semicolon shouldn't be there.
  15. Replies
    4
    Views
    266

    Re: Strange compiler behavior

    For performance reasons compilers often try to keep variables in registers as much as possible and also use registers to pass function return values back to the calling code.

    The function returns...
  16. Thread: Starting out

    by razzle
    Replies
    2
    Views
    231

    Re: Starting out

    You can get better control of the Excel you know by programming it in the VBA language (Visual Basic for Applications).

    I'm sure you can do all this in Visual Studio. It's because it's the...
  17. Thread: Inheritance

    by razzle
    Replies
    7
    Views
    326

    Re: Inheritance

    It's quite easily fixed actually. One way is to make the classes immutable. Then the Liskov Substitution (LSP) principle isn't broken anymore and the design is fine.

    I think you're being too...
  18. Replies
    14
    Views
    441

    Re: Object Oriented Programming

    The term "data" in data abstraction and data hiding should not be understood in the passive sense only as something inert that is merely held in different places. The active aspect of "data" is...
  19. Thread: Inheritance

    by razzle
    Replies
    7
    Views
    326

    Re: Inheritance

    It's like the difference between having a question and being the question. :)

    Now code some C++ and ask about that.
  20. Replies
    14
    Views
    441

    Re: Object Oriented Programming

    As I said, data abstraction and data hiding are encapsulation viewed from different angles.

    I suggest you first learn C++ and get some experience with real code. Then everything will fall into...
  21. Replies
    6
    Views
    585

    Re: Improving productivity

    Education, experience and a productive environment are the only "methods" that work. For the latter I subscribe to the Agile movement (see the 12 principles).

    http://agilemanifesto.org/

    At...
  22. Thread: Constructors

    by razzle
    Replies
    3
    Views
    281

    Re: Constructors

    Not this time because your other questions indicate it will be very hard to give a meaningful explanation at your current level of knowledge.

    So I limit my reply to the pure technical observation...
  23. Replies
    14
    Views
    441

    Re: Object Oriented Programming

    They are the two aspects of encapsulation (which together with polymorphism and inheritance are the three pillars of OO).

    Data abstraction is what you've encapsulated viewed from the outside.
    ...
  24. Thread: Constructors

    by razzle
    Replies
    3
    Views
    281

    Re: Constructors

    Not if the object is immutable (cannot be changed after construction).

    Avoid mutators (setters), that's a fine design principle.
  25. Replies
    4
    Views
    235

    Re: Need help with easy problem

    Say you have a function max that takes two ints and returns the biggest. As you've probably found out you can find the biggest of three ints like this,

    max(max(a,b),c)

    Now you instead want to...
Results 1 to 25 of 179
Page 1 of 8 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center