Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
QuestionCant get a Media player control on web application in VS Pin
lvq6849-Jan-10 8:37
lvq6849-Jan-10 8:37 
QuestionChange the size in dataGridView Pin
SajjadZare9-Jan-10 5:03
SajjadZare9-Jan-10 5:03 
AnswerRe: Change the size in dataGridView Pin
Luc Pattyn9-Jan-10 7:08
sitebuilderLuc Pattyn9-Jan-10 7:08 
QuestionC# Override CheckedListBox Pin
ikurtz9-Jan-10 4:58
ikurtz9-Jan-10 4:58 
AnswerRe: C# Override CheckedListBox Pin
Luc Pattyn9-Jan-10 5:09
sitebuilderLuc Pattyn9-Jan-10 5:09 
GeneralRe: C# Override CheckedListBox Pin
ikurtz9-Jan-10 5:15
ikurtz9-Jan-10 5:15 
QuestionBreak Recursive Function Pin
dataminers9-Jan-10 4:54
dataminers9-Jan-10 4:54 
AnswerRe: Break Recursive Function Pin
Luc Pattyn9-Jan-10 5:12
sitebuilderLuc Pattyn9-Jan-10 5:12 
Hi,

the normal way to use recursive functions is by providing parameters that have different values each time; the typical example is the factorial function:

public int Factorial(int n) {
    if (n<=1) return 1;
    return n*Factorial(n-1);
}


Did you notice:
1. I used PRE tags to show code, so it is formatted and rendered in a non-proportional font for optimal readability.
2. the Factorial function, taking n as a parameter, calls itself not with n but with n-1.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Happy New Year to all.
We hope 2010 soon brings us automatic PRE tags!
Until then, please insert them manually.


AnswerRe: Break Recursive Function Pin
Nicholas Butler9-Jan-10 5:12
sitebuilderNicholas Butler9-Jan-10 5:12 
AnswerRe: Break Recursive Function Pin
Roger Wright9-Jan-10 21:31
professionalRoger Wright9-Jan-10 21:31 
GeneralRe: Break Recursive Function Pin
dataminers9-Jan-10 22:08
dataminers9-Jan-10 22:08 
QuestionLooking for pointers... Pin
JollyMansArt9-Jan-10 4:12
JollyMansArt9-Jan-10 4:12 
AnswerRe: Looking for pointers... Pin
Nicholas Butler9-Jan-10 5:01
sitebuilderNicholas Butler9-Jan-10 5:01 
QuestionReset sql column identity value from c# Pin
teknolog1239-Jan-10 2:14
teknolog1239-Jan-10 2:14 
AnswerRe: Reset sql column identity value from c# Pin
Eddy Vluggen9-Jan-10 2:27
professionalEddy Vluggen9-Jan-10 2:27 
GeneralRe: Reset sql column identity value from c# Pin
teknolog1239-Jan-10 3:14
teknolog1239-Jan-10 3:14 
GeneralRe: Reset sql column identity value from c# Pin
Eddy Vluggen9-Jan-10 3:52
professionalEddy Vluggen9-Jan-10 3:52 
QuestionPrint Microsoft Report Pin
Thaer Hamael9-Jan-10 1:05
Thaer Hamael9-Jan-10 1:05 
AnswerRe: Print Microsoft Report Pin
OriginalGriff9-Jan-10 2:09
mveOriginalGriff9-Jan-10 2:09 
QuestionC# Pin
Suniel159-Jan-10 0:25
Suniel159-Jan-10 0:25 
AnswerRe: C# Pin
DaveyM699-Jan-10 0:58
professionalDaveyM699-Jan-10 0:58 
AnswerRe: C# Pin
OriginalGriff9-Jan-10 1:01
mveOriginalGriff9-Jan-10 1:01 
QuestionWorking with Crystal Reports and Forms Pin
sorooshk8-Jan-10 21:40
sorooshk8-Jan-10 21:40 
AnswerRe: Working with Crystal Reports and Forms Pin
Saksida Bojan8-Jan-10 22:03
Saksida Bojan8-Jan-10 22:03 
GeneralRe: Working with Crystal Reports and Forms Pin
sorooshk8-Jan-10 22:16
sorooshk8-Jan-10 22:16 

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.