Click here to Skip to main content
15,910,872 members
Home / Discussions / C#
   

C#

 
AnswerRe: Mouse over a control Pin
Martin#25-Apr-07 20:16
Martin#25-Apr-07 20:16 
Questionsave file as atext...using v.s 2003 ! Pin
mr jets25-Apr-07 17:53
mr jets25-Apr-07 17:53 
AnswerRe: save file as atext...using v.s 2003 ! Pin
Christian Graus25-Apr-07 19:22
protectorChristian Graus25-Apr-07 19:22 
GeneralRe: save file as atext...using v.s 2003 ! Pin
mr jets26-Apr-07 5:22
mr jets26-Apr-07 5:22 
GeneralRe: save file as atext...using v.s 2003 ! Pin
Christian Graus26-Apr-07 11:16
protectorChristian Graus26-Apr-07 11:16 
GeneralRe: save file as atext...using v.s 2003 ! Pin
mr jets26-Apr-07 13:00
mr jets26-Apr-07 13:00 
GeneralRe: save file as atext...using v.s 2003 ! Pin
Christian Graus26-Apr-07 22:08
protectorChristian Graus26-Apr-07 22:08 
Questionpostback or DoPostback Pin
karl170125-Apr-07 14:46
karl170125-Apr-07 14:46 
AnswerRe: postback or DoPostback Pin
karl170125-Apr-07 16:17
karl170125-Apr-07 16:17 
Questionsave & open file... Pin
mr jets25-Apr-07 14:32
mr jets25-Apr-07 14:32 
AnswerRe: save & open file... Pin
Christian Graus25-Apr-07 14:43
protectorChristian Graus25-Apr-07 14:43 
GeneralRe: save & open file... Pin
mr jets25-Apr-07 15:10
mr jets25-Apr-07 15:10 
GeneralRe: save & open file... Pin
Christian Graus25-Apr-07 15:14
protectorChristian Graus25-Apr-07 15:14 
GeneralRe: save & open file... Pin
mr jets25-Apr-07 15:19
mr jets25-Apr-07 15:19 
GeneralRe: save & open file... Pin
mr jets25-Apr-07 16:21
mr jets25-Apr-07 16:21 
QuestionInteger/Decimal control in Windows Froms Pin
Nooie25-Apr-07 13:59
Nooie25-Apr-07 13:59 
AnswerRe: Integer/Decimal control in Windows Froms Pin
Christian Graus25-Apr-07 14:21
protectorChristian Graus25-Apr-07 14:21 
QuestionCombinations or Permutations or something else?? Pin
allenmpcx25-Apr-07 12:18
allenmpcx25-Apr-07 12:18 
AnswerRe: Combinations or Permutations or something else?? Pin
Arun.Immanuel25-Apr-07 15:08
Arun.Immanuel25-Apr-07 15:08 
Try This:

create the following functions:
===============================

1.string arraytoString(int [])
This function must combine the array into string.

2.int countOnes(int [])
This function must count the number of "ones" present in the array.

3.int [] convertToBinary(int n,int s)
This function must convert the integer n to its binary equivaling and split them into an array of size s.
Ex: input:8,5 output: {0,1,0,0,0}

4.mainfunction()
{
 for(int i=0;i<2<sup>N</sup>;i++)//N->size 
 {
    int a[]=convertToBinary(i,N);
    if(countOnes(a)==N/2)
      print arraytoString(a);
 }

}











Regards,
Arun Kumar.A

AnswerRe: Combinations or Permutations or something else?? [modified] Pin
Luc Pattyn25-Apr-07 15:52
sitebuilderLuc Pattyn25-Apr-07 15:52 
GeneralRe: Combinations or Permutations or something else?? Pin
Arun.Immanuel25-Apr-07 16:09
Arun.Immanuel25-Apr-07 16:09 
Questionsolution urgent please Pin
netJP12L25-Apr-07 12:11
netJP12L25-Apr-07 12:11 
AnswerRe: solution urgent please Pin
Colin Angus Mackay25-Apr-07 21:22
Colin Angus Mackay25-Apr-07 21:22 
GeneralRe: solution urgent please Pin
netJP12L26-Apr-07 8:48
netJP12L26-Apr-07 8:48 
QuestionHiding the UI Pin
AAKAra25-Apr-07 12:04
AAKAra25-Apr-07 12:04 

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.