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

C#

 
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 
GeneralRe: Divide an array of numbers into groups Pin
Bart Van Eyndhoven28-Apr-10 5:00
Bart Van Eyndhoven28-Apr-10 5:00 
Just once across all roof surfaces. In the end I need to know if the "puzzle" can be solved and -if so- wich connectable belongs to wich roof surface.

The array intRoofSurfaces contains the targets. The most important thing I need to know is if there is a possibility to divide the elements of intConnectables[] into n groups where n is the number of elements in intRoofSurfaces. If it proves to be possible, I need to know for every element in intConnectables[] to wich element of intRoofSurfaces[] it is connected.

I know, I'm being a little picky right now, but I really need to get it before I can code the next parts of my program.

The following is just informative, so don't take it in consideration when posting your ideas just yet... Therefore I'll put it in a smaller font.

I have a set with a whole bunch of combinations (arrays intConnectables[]). Every combination will be checked. A few steps later, the roof surfaces are ungrouped and I'll have to do a reversed algorithm. More or less, because a connetable will now be usable across roof surfaces.

e.g.
The grouped roof surface has to contain 28 modules and it exists of 3 roof surfaces: 15, 7 and 6 modules. There are 4 connactables assigned, 9, 8, 6 and 5 modules.
intConnectables[] = {9, 8, 6, 5}
intSeperateRoofSurfaces[] = {15, 7, 6}

Then I would have to get a result like this:
9 + 6 = 15 | 7 [from 8] = 7 | 5 + 1 [from 8] = 6
So the connectable of 8 has been split into 7 and 1.

Just informative...

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 
GeneralRe: project n-tier Pin
genieabdo28-Apr-10 4:00
genieabdo28-Apr-10 4:00 

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.