2,157 Posted Topics

Member Avatar for Kath_Fish

Since the items are returned in lexical order (first one is first, second is second), if you sort the items before you pass it to the combination class (if you are using the one I designed), the results will be in sorted order. So if you have myArray as your …

Member Avatar for Kath_Fish
0
286
Member Avatar for xxxtian
Member Avatar for Kieran Y5

The private key can be derived from the public key, but the amount of computing power to do so it prohibitive. For example, if you used RSA you'd have to find the prime factors of a very large number. A quote from [URL="http://en.wikipedia.org/wiki/Prime_factor"]Wikipedia[/URL] is in order here: [I]"Determining the prime …

Member Avatar for Momerath
0
95
Member Avatar for lianpiau

Did you install Developer Express v2010 v10.2.4 on the other machine? There are DLLs that it needs to have installed for it to work on other machines.

Member Avatar for lianpiau
0
161
Member Avatar for asha2009

Could you tell us which line is throwing the exception so we don't have to validate that every object in your code exists?

Member Avatar for asha2009
0
116
Member Avatar for Kath_Fish
Member Avatar for Kath_Fish
0
408
Member Avatar for chess2009

I find these two statements in the AUP to be contradictory: [quote]...holds no responsibility for anything that is posted by individual members of the community.[/quote] [quote]Posts contributed to the community immediately become the property of DaniWeb upon submission.[/quote] How can you own them and not be responsible for them? I …

Member Avatar for Ezzaral
0
367
Member Avatar for moni94

No, since List<T> is technically not a type until you've given it one. So an extension method for a generic has to have a type so it 'knows' which type it is extending.

Member Avatar for Momerath
0
96
Member Avatar for george61

Well, divisors always come in pairs, so you only need to search up to the square root of the number (and add 2 to the divisor count each time you find one). To give you an idea of how much of a speed improvement, I wrote your routine and the …

Member Avatar for Momerath
0
526
Member Avatar for ChaosKnight11

You could do it with any language, but the software has to run on the client machine, not the server.

Member Avatar for Momerath
0
96
Member Avatar for RenanLazarotto
Member Avatar for trume

[URL="http://www.daniweb.com/code/snippet351309.html"]A Collection of Sorts[/URL]

Member Avatar for anilalogix
0
99
Member Avatar for kebbby

Your sort routine is a variant of the Bucket sort. I'd pick a different sort routine that doesn't require extra storage space (Shell, Quick, Heap)

Member Avatar for AndreRet
0
1K
Member Avatar for ProgWr
Member Avatar for Oddone
Member Avatar for Oddone
0
307
Member Avatar for RenanLazarotto

Line 9: You declare the random variable inside your method. Since it uses a seed off the clock, and your computer is very fast, it generates the same random sequence with each call. Move it outside the method to be a class variable and all should be good.

Member Avatar for RenanLazarotto
0
114
Member Avatar for sheennave

It's an exception that comes out of automating windows powershell, usually generated when you tell it to use a specific file that doesn't exist.

Member Avatar for sheennave
0
212
Member Avatar for BleepyE

You need to explain more by what you mean "send to the database". Do you want to use them in a query, store them in a table, use them to login?

Member Avatar for BleepyE
0
229
Member Avatar for moshe12007

You'd also miss textboxes that are in containers. And with 90 textboxes on a form, I hope he has them organized in some way! BTW, why do you have 90 textboxes on a form? That's about 80 too many for standard UI design guidelines.

Member Avatar for moshe12007
0
169
Member Avatar for Usmaan
Member Avatar for valter

I'm not sure what you want. Do you want to read the hashtable into memory and then retrieve values, or do you just want to search through the file to find values?

Member Avatar for valter
0
78
Member Avatar for trume

QuickSort is recursive and thus requires the 3 parameters to use. What you need to do is create a wrapper around the call: [code]private void DoQuickSort(int[] a) { QuickSort(a, 0, a.Length - 1);[/code]

Member Avatar for trume
0
3K
Member Avatar for theUserMan

Multidimensional arrays in C# are done with one set of [], not two. Your code should read: [code]for (int i = 0; i < 12; i++) { for (int e = 0; e < 2; e++) { temps[i,e] = int.Parse(Console.ReadLine()); } }[/code] (Not going into how to determine array size …

Member Avatar for theUserMan
0
772
Member Avatar for Momerath

The past few days I've posted some sorting routines customized to the tasks they were required to solve. Since I have a bunch of different sorting routines already coded, I decided to post them. Please note that some of these sorts are fast, but not a single one is as …

Member Avatar for Momerath
3
829
Member Avatar for trume
Member Avatar for jashmin
Member Avatar for Momerath
0
136
Member Avatar for dorothy.v

Yep there is a problem. It's not enclosed in code tags, nor does it come with anything to explain what it is trying to accomplish.

Member Avatar for dorothy.v
0
123
Member Avatar for jashmin

It's very hard to read what you have written since you leave out words and vowels from words. I assume English isn't your first language but maybe you could get someone to help you explain what you need. That said, from what I gather you need to create a project …

Member Avatar for jashmin
0
90
Member Avatar for yousafc#

[URL="http://msdn.microsoft.com/en-us/library/system.text.stringbuilder.aspx"]StringBuilde[/URL]r. [URL="http://msdn.microsoft.com/en-us/library/system.text.stringbuilder.aspx"]StringBuilder[/URL]. [URL="http://msdn.microsoft.com/en-us/library/system.text.stringbuilder.aspx"]StringBuilder[/URL]. Good habits, not bad.

Member Avatar for yousafc#
0
92
Member Avatar for virusisfound

I don't see anything obviously wrong so I'd guess your SQL isn't returning anything.

Member Avatar for virusisfound
0
100
Member Avatar for Kath_Fish

To explain a little more, foreach expects the last argument (the one after the in) to have implemented the interface IEnumerable or IEnumberable<T>.

Member Avatar for Kath_Fish
0
138
Member Avatar for jugnu

You are doing it wrong. Since you posted no code showing what you are doing, that's the best answer that can be given.

Member Avatar for Mitja Bonca
0
154
Member Avatar for carlitosway17

This is a generic heapsort that you could use to maintain your Heap based Priority Queue. You'd just have to implement IComparable on your Patient class. [code]using System; namespace Whittle.Sorting.Selection { class Heap<T> : Sorts<T> where T : IComparable { public override string Name { get { return "Heap"; } …

Member Avatar for carlitosway17
0
125
Member Avatar for Mr.BunyRabit
Member Avatar for Mr.BunyRabit
0
108
Member Avatar for bob200707

Post your problem, I'll see if I can help (though it has been many years since I've worked with COBOL :))

Member Avatar for WaltP
0
156
Member Avatar for Farhad.idrees

When you remove an item (or add one) to a list it messes up the Selected values. You can't rely on them being valid anymore. What you need to do is copy the selected values somewhere else then use that new copy to remove the items.

Member Avatar for ddanbe
0
201
Member Avatar for ajinkya112
Member Avatar for vasuhajare@gmai
Member Avatar for Mitja Bonca
0
696
Member Avatar for yousafc#
Member Avatar for chanda gul

Just a question: Why use interop vs the [URL="http://msdn.microsoft.com/en-us/library/microsoft.win32.registry.aspx"]Registry[/URL] class?

Member Avatar for chip_byrne
0
381
Member Avatar for Usmaan

[URL="http://msdn.microsoft.com/en-us/library/dy85x1sa.aspx"]String.Contains[/URL] [code]if (word.Contains(input)) { // yes it does } else { // no it doesn't }[/code]

Member Avatar for Momerath
0
97
Member Avatar for valter

[code]int[,] my2Darray = new int[stat.Length, 2]; for (int i = 0; i < stat.Length; i++) { my2Darray[i,0] = stat[i]; my2Darray[i,1] = indexes[i]; } int n = stat.Length; // Shell sort int inc = n / 2; while (int > 0) { for (int i = inc; i < n; i++) …

Member Avatar for Momerath
0
2K
Member Avatar for reanopp

Any reason you resurrected an eleven month old thread? The user who asked the question hasn't logged on in ten months, so I doubt they will see your answer.

Member Avatar for Momerath
0
255
Member Avatar for leiger

Read [URL="http://msdn.microsoft.com/en-us/library/aa730869%28v=vs.80%29.aspx"]this[/URL]. They are stored in an XML file. Microsoft recommends that you no longer use the registry for settings.

Member Avatar for leiger
0
187
Member Avatar for WildBamaBoy

[URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.aspx"]ListView[/URL] has a DoubleClick event so you'd detect it by attaching an event handler :)

Member Avatar for WildBamaBoy
0
108
Member Avatar for Usmaan

[code]String s = string.Empty.PadLeft(6, '-');[/code] Replace the six with your variable. No loops required.

Member Avatar for Momerath
0
119
Member Avatar for falcon eyes

Two problems. Line 14 won't compile. Second problem is in lines 57-66. You return _msgboxresult but don't set it in the method so it will always return the default value you set in line 8. You need to get the returned value in line 64.

Member Avatar for falcon eyes
0
322
Member Avatar for zachattack05

I'm not sure what you are asking. There is no signaling done when a thread executes something in a referenced DLL (unless the code being executed explicitly does thread signaling, just like any other code).

Member Avatar for zachattack05
0
139
Member Avatar for james6754

The new keyword is used to tell the compiler that you really do want to replace the method in the base class. If you don't include it, you get this compiler warning: [I]Student.Print()' hides inherited member 'Person.Print()'. Use the new keyword if hiding was intended.[/I]

Member Avatar for Momerath
0
94
Member Avatar for deolalkar_pooja

Since MAIL.MID has to equal PHONE.PID and PHONE.PID has to equal 12, we know that MAIL.MID has to equal 12 by the [URL="http://www.mathwords.com/t/transitive_property.htm"]transitive property of equality[/URL] so it's just [code]DELETE FROM MAIL WHERE MAIL.MID = 12[/code]

Member Avatar for Momerath
0
146

The End.