problems (1,286)

I need to programmatically solve a system of linear equations in C, Objective C, or(if needed) C++. Here's an example of the equations:-44.3940=a*50.0+b*37.0+tx-45.3049=a*43.0+b*39.0+tx-44.9594=a*52.0…

Most people with a degree in CS will certainly know what Big O stands for.It helps us to measure how(in)efficient an algorithm really is and if you know in what category the problem you are trying to…

What is BODMAS and why is it useful in programming?…

Let's say I have a complex.NET class, with lots of arrays and other class object members. I need to be able to generate a deep clone of this object-so I write a Clone() method, and implement it w…

I'm looking for a book/site/tutorial on best practices for relational database design, tuning for performance etc. It turns out this kind of resource is a bit difficult to find; there's a lot of "her…

I heard that Kent Beck who leads XP used so many color pencils to stimulate his brain when he needed to solve the problem. I tried Kent's method and it really worked for me. I don't know why. Do you…

Microsoft says that Visual Studio 2008 can be installed on any version of Vista(excluding started edition). But I am not sure, if Home Editions cause not problems with debugging, virtual machines, I…

As far as I know, foreign keys(FK) are used to aid the programmer to manipulate data in the correct way. Suppose a programmer is actually doing this in the right manner already, then do we really need…

For example, Look at the code that calculates the n-th Fibonacci number: fib(int n){if(n==0 || n==1) return 1; return fib(n-1)+fib(n-2);}The problem with this code is that it w…

I constantly hear how bad reflection is to use. While I generally avoid reflection and rarely find situations where it is impossible to solve my problem without it, I was wondering... For those who ha…