Click here to Skip to main content
15,912,493 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Adding Row Numbers to DataGridView Pin
RobCroll8-Feb-11 1:07
RobCroll8-Feb-11 1:07 
QuestionI have this task but I don't know what I should do , Please help me. (get Factor) Pin
Honeyboy_206-Feb-11 0:15
Honeyboy_206-Feb-11 0:15 
AnswerRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
Honeyboy_206-Feb-11 0:35
Honeyboy_206-Feb-11 0:35 
GeneralRe: I have this task but I don't know what I should do , Please help me. (get Factor) [modified] Pin
_Erik_8-Feb-11 3:38
_Erik_8-Feb-11 3:38 
AnswerRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
Richard MacCutchan6-Feb-11 1:35
mveRichard MacCutchan6-Feb-11 1:35 
GeneralRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
#realJSOP7-Feb-11 5:20
professional#realJSOP7-Feb-11 5:20 
AnswerRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
Abhinav S7-Feb-11 6:42
Abhinav S7-Feb-11 6:42 
AnswerRe: I have this task but I don't know what I should do , Please help me. (get Factor) Pin
Bernhard Hiller8-Feb-11 0:46
Bernhard Hiller8-Feb-11 0:46 
Since the function signature is quite misleading from a C# point of view, let me give you some hints:
the return value is actually a boolean: "returns 1 if the integer is n-factored", and implicitly 0 otherwise - that's a stone-age coding praxis typical of C or COM. Now you can start to interpret the parameters: "value" should be the integer number for which to find the number of factors, and "n" the number of factors. I.e. if "value" has "n" factors return 1, otherwise 0.
Now take the code you've posted, and make little changes: calculate "sqrt", then compare "factorcount" and "n" for getting the return value.
QuestionTab Control Page Not Responding Fast Enough Pin
Member 22565334-Feb-11 4:54
Member 22565334-Feb-11 4:54 
AnswerRe: Tab Control Page Not Responding Fast Enough Pin
Yusuf4-Feb-11 5:33
Yusuf4-Feb-11 5:33 
GeneralRe: Tab Control Page Not Responding Fast Enough Pin
Member 22565334-Feb-11 5:39
Member 22565334-Feb-11 5:39 
AnswerRe: Tab Control Page Not Responding Fast Enough Pin
Luc Pattyn4-Feb-11 6:19
sitebuilderLuc Pattyn4-Feb-11 6:19 
AnswerRe: Tab Control Page Not Responding Fast Enough Pin
GenJerDan4-Feb-11 9:57
GenJerDan4-Feb-11 9:57 
Questionnet framework installation Pin
siaswar3-Feb-11 11:27
siaswar3-Feb-11 11:27 
AnswerRe: net framework installation Pin
Roger Wright3-Feb-11 11:40
professionalRoger Wright3-Feb-11 11:40 
AnswerRe: net framework installation Pin
RobCroll3-Feb-11 13:21
RobCroll3-Feb-11 13:21 
AnswerRe: net framework installation Pin
Luc Pattyn3-Feb-11 14:06
sitebuilderLuc Pattyn3-Feb-11 14:06 
GeneralRe: net framework installation Pin
RobCroll3-Feb-11 14:51
RobCroll3-Feb-11 14:51 
AnswerRe: net framework installation Pin
Abhinav S4-Feb-11 0:14
Abhinav S4-Feb-11 0:14 
QuestionEventing and Memory leaks Pin
RobCroll2-Feb-11 5:04
RobCroll2-Feb-11 5:04 
AnswerRe: Eventing and Memory leaks Pin
Luc Pattyn2-Feb-11 5:17
sitebuilderLuc Pattyn2-Feb-11 5:17 
AnswerRe: Eventing and Memory leaks Pin
Eddy Vluggen2-Feb-11 7:29
professionalEddy Vluggen2-Feb-11 7:29 
GeneralRe: Eventing and Memory leaks Pin
RobCroll2-Feb-11 14:02
RobCroll2-Feb-11 14:02 
GeneralRe: Eventing and Memory leaks Pin
Nitin Singh India26-Mar-11 10:11
Nitin Singh India26-Mar-11 10:11 
QuestionListview groups Pin
Herboren1-Feb-11 6:23
Herboren1-Feb-11 6:23 

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.