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 17 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    174

    Re: My code is going out of bounds

    That's too bad because then you're a programmer without future.

    It's so simple it almost hurts. You start with a small working program. Then you develop it in small working steps. And you end up...
  2. Re: Creating a good computer AI for a tic tac toe game.

    I'm sorry but I haven't the faintest idea of what you're asking.

    You're talking like someone who hasn't written this program but wants to modify it without any knowledge of the programming...
  3. Thread: I need help

    by razzle
    Replies
    6
    Views
    544

    Re: I need help

    There seems to be a higher symmertry I didn't notice before. A reflection among shapes.

    I'll have a another look at this.

    Could you give an indication as to where this problem occurs?
  4. Re: Creating a good computer AI for a tic tac toe game.

    So you want this to be solved,

    "1.) What I mean by a good computer AI is an AI that won't let the user win by randomly placing on X's or O's on the board(it would place an X or an O right when the...
  5. Replies
    8
    Views
    201

    Re: Algorithms on prime numbers.

    Does this mean you've found the answer to your question in this thread?
  6. Re: Creating a good computer AI for a tic tac toe game.

    You'll have to be a little patient.

    In due time your teacher will introduce what makes C++ more than C.

    Later you may even be asked to rewrite this very first of your programs to reflect what...
  7. Replies
    8
    Views
    201

    Re: Algorithms on prime numbers.

    It won't do.

    The lingua franca of science may change but at this moment in history it's English.

    You have to accept it or perish.

    It took me only a year to go from native speaker of an old...
  8. Re: Creating a good computer AI for a tic tac toe game.

    Your program is mostly C because you're not defining own classes.

    Okay you have the Board class but one swallow doesn't make a summer as they say. :)

    And avoid plaititues like "good computer...
  9. Replies
    5
    Views
    174

    Re: My code is going out of bounds

    By applying stepwise refinement.

    Develop you code in small increments from start to finish. Make sure it works as intended in each step.

    The worst thing you can do is be sitting with a pile of...
  10. Re: Creating a good computer AI for a tic tac toe game.

    What do you mean by "good computer AI" and how does this property depend on code structure?

    There's very little structure in your code actually. Except from the Board class you haven't defined a...
  11. Thread: I need help

    by razzle
    Replies
    6
    Views
    544

    Re: I need help

    In the example why didn't you use the number 8 to form another blue rectangle? Then 10, 25 and 18 would be reused but that appears to be allowed?

    Yet another blue rectangle would be possible if...
  12. Re: [RESOLVED] HELP : converting a decimal number given by the user to binary using C

    Apply the addition algorithm you learned in first grade only now you use binary numbers instead of decimal numbers. These are different number systems but the addition algorithm is general and works...
  13. Replies
    1
    Views
    201

    Re: Build DAG from Objects

    It seems you want to identify all cyclic (strongly connected) objects in a directed grapth. Have a look here,

    http://en.wikipedia.org/wiki/Strongly_connected_component

    Especially Tarjan's...
  14. Re: Specify how many times elements of array will be compared [Bubble sort]

    Your test shows that the algrithm has O(N^2) complexity indeed.

    When you make the array 10 times bigger the test takes 10^2 = 100 times longer.

    This trend should stick. For example if you make...
  15. Replies
    4
    Views
    261

    Re: find object in vector and delete

    The erase() operation on a vector is an O(N) operation.

    As an alternative, if efficiency is important and elements may be reordered, you can simply overwrite the found element with the last...
  16. Thread: I need help

    by razzle
    Replies
    6
    Views
    544

    Re: I need help

    Well, it was just a control question to see if there was someone out there. My intuition was right, there wasn't.

    I call it the Indian rope trick. People ask a question, then mysteriously...
  17. View Post

    I guess you'll have to do it the hard way then, by your own deep thinking.

    This is the kind of cheating I dislike the most. Posting hard unsolved problems all over the place in the slim chance...
  18. Replies
    10
    Views
    310

    Re: How to do clone in vc++?

    Whether a standard library has a "top class" is unrelated to what runtime system is used.



    Not if you're into OO. Then cloning is prefered over copy construction (and copy assignment) also in...
  19. Replies
    10
    Views
    310

    Re: How to do clone in vc++?

    In C++ cloning isn't as formalized as it is in Java (which has language support for it).

    But you can still clone in C++. It's just to provide a method that does what you want namely to return an...
  20. Replies
    16
    Views
    622

    Re: sort vector of objects on member variable

    Once you've figured out how to accomplish the ordering of the objects you could consider storing them in an std::set rather than an std::vector. A set will keep the objects sorted at all times.
  21. Re: Determination if sequance is increasing or non- decreasing

    Not if tail recursion is used and the compiler optimizes for that (and since C++ functional programming is becoming non-decreasingly popular this is often the case).
  22. View Post

    Is this an unresolved research proposition?

    Are you asking for an unassuming genious to help you get a doctorate?
  23. Thread: I need help

    by razzle
    Replies
    6
    Views
    544

    Re: I need help

    It's very hard to understand what your problem is.

    But I feel you should apply triangulation. That triangulation is key to solving this problem.
  24. Re: What is the code I use to generate these patterns?

    Or you can use two nested loops.

    The outer to iterate over rows and the inner to iterate over columns.
  25. Replies
    5
    Views
    365

    Re: question about matrix maniplation

    As far as I know there's just one download of Boost regardless of where it's going to be used. In the standard Boost download you find the uBLAS library under boost/numeric/ublas.

    uBLAS is a so...
Results 1 to 25 of 412
Page 1 of 17 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