Type: Posts; User: razzle
Search took 0.03 seconds.
December 26th, 2014, 08:45 PM
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...
December 26th, 2014, 08:18 PM
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...
December 26th, 2014, 08:01 PM
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?
December 26th, 2014, 07:47 PM
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...
December 26th, 2014, 07:37 PM
Does this mean you've found the answer to your question in this thread?
December 26th, 2014, 07:22 PM
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...
December 26th, 2014, 06:58 PM
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...
December 26th, 2014, 06:36 PM
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...
December 26th, 2014, 06:08 PM
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...
December 26th, 2014, 05:24 PM
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...
December 20th, 2014, 04:46 AM
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...
December 19th, 2014, 06:33 PM
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...
December 18th, 2014, 01:47 PM
It seems you want to identify all cyclic (strongly connected) objects in a directed grapth. Have a look here,
December 18th, 2014, 03:37 AM
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...
December 14th, 2014, 08:44 AM
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...
December 12th, 2014, 04:44 PM
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...
December 12th, 2014, 04:28 PM
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...
December 12th, 2014, 09:41 AM
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...
December 12th, 2014, 09:15 AM
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...
December 11th, 2014, 03:27 AM
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.
December 7th, 2014, 02:57 PM
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).
December 5th, 2014, 05:46 PM
Is this an unresolved research proposition?
Are you asking for an unassuming genious to help you get a doctorate?
December 5th, 2014, 05:24 PM
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.
December 4th, 2014, 03:08 AM
Or you can use two nested loops.
The outer to iterate over rows and the inner to iterate over columns.
December 4th, 2014, 02:21 AM
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...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.