Click here to Skip to main content
16,005,316 members
Home / Discussions / C#
   

C#

 
AnswerRe: Line as user control Pin
Kevin Marois28-Apr-10 13:53
professionalKevin Marois28-Apr-10 13:53 
QuestionThreading Problem Pin
Mahesh_Blr28-Apr-10 4:10
Mahesh_Blr28-Apr-10 4:10 
AnswerRe: Threading Problem Pin
PIEBALDconsult28-Apr-10 4:32
mvePIEBALDconsult28-Apr-10 4:32 
AnswerRe: Threading Problem Pin
Abhinav S28-Apr-10 5:49
Abhinav S28-Apr-10 5:49 
QuestionDivide an array of numbers into groups [SOLVED] Pin
Bart Van Eyndhoven28-Apr-10 3:46
Bart Van Eyndhoven28-Apr-10 3:46 
GeneralRe: Divide an array of numbers into groups Pin
harold aptroot28-Apr-10 3:49
harold aptroot28-Apr-10 3:49 
GeneralRe: Divide an array of numbers into groups Pin
Bart Van Eyndhoven28-Apr-10 4:01
Bart Van Eyndhoven28-Apr-10 4:01 
GeneralRe: Divide an array of numbers into groups Pin
harold aptroot28-Apr-10 4:28
harold aptroot28-Apr-10 4:28 
Can you use the connectables once per roof surface or just once (across all roof surfaces)?
For now I'm guessing the latter..
And you must use all of them?

You could maybe (in pseudo code):
(!!untested!!)
bool Solve(int i)
{
    if (i == numberOfConnectables + 1)
        return true;
    for each RoofSurface
        add Connectable[i] to the RoofSurface
        if (RoofSurface.Sum <= RoofSurface.Target)
        {
            if (Solve(i + 1))
                return true
        }
        remove Connectable[i] from the RoofSurface
    endfor
    return false
}

Just an idea, I'll go test it in a moment
GeneralRe: Divide an array of numbers into groups Pin
Bart Van Eyndhoven28-Apr-10 5:00
Bart Van Eyndhoven28-Apr-10 5:00 
GeneralRe: Divide an array of numbers into groups Pin
harold aptroot28-Apr-10 5:03
harold aptroot28-Apr-10 5:03 
GeneralRe: Divide an array of numbers into groups Pin
Bart Van Eyndhoven28-Apr-10 5:08
Bart Van Eyndhoven28-Apr-10 5:08 
AnswerRe: Divide an array of numbers into groups [modified] Pin
harold aptroot28-Apr-10 4:52
harold aptroot28-Apr-10 4:52 
GeneralRe: Divide an array of numbers into groups Pin
Bart Van Eyndhoven28-Apr-10 5:05
Bart Van Eyndhoven28-Apr-10 5:05 
GeneralRe: Divide an array of numbers into groups Pin
harold aptroot28-Apr-10 5:10
harold aptroot28-Apr-10 5:10 
AnswerRe: Divide an array of numbers into groups Pin
V.28-Apr-10 5:06
professionalV.28-Apr-10 5:06 
Questionhow to set default value of combobox in c# Pin
tanzeel8528-Apr-10 3:45
tanzeel8528-Apr-10 3:45 
AnswerRe: how to set default value of combobox in c# Pin
Dan Mos28-Apr-10 3:55
Dan Mos28-Apr-10 3:55 
AnswerRe: how to set default value of combobox in c# [modified] Pin
PIEBALDconsult28-Apr-10 4:33
mvePIEBALDconsult28-Apr-10 4:33 
GeneralRe: how to set default value of combobox in c# Pin
tanzeel8528-Apr-10 4:43
tanzeel8528-Apr-10 4:43 
GeneralRe: how to set default value of combobox in c# Pin
Dan Mos28-Apr-10 4:58
Dan Mos28-Apr-10 4:58 
GeneralRe: how to set default value of combobox in c# Pin
V.28-Apr-10 5:00
professionalV.28-Apr-10 5:00 
Questionrun , show and application in my project and handle its forms Pin
iman_kh28-Apr-10 3:43
iman_kh28-Apr-10 3:43 
AnswerRe: run , show and application in my project and handle its forms Pin
Henry Minute28-Apr-10 11:05
Henry Minute28-Apr-10 11:05 
Questionproject n-tier Pin
genieabdo28-Apr-10 2:20
genieabdo28-Apr-10 2:20 
AnswerRe: project n-tier Pin
J4amieC28-Apr-10 2:25
J4amieC28-Apr-10 2:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.