2,157 Posted Topics
Re: 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 … | |
Re: What version of SQL Server are you using? | |
Re: 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 … | |
Re: 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. | |
Re: Could you tell us which line is throwing the exception so we don't have to validate that every object in your code exists? | |
Re: You can convert it to a character array by appending .ToCharArray() | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: You could do it with any language, but the software has to run on the client machine, not the server. | |
Re: [URL="http://www.daniweb.com/code/snippet351309.html"]A Collection of Sorts[/URL] | |
Re: 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) | |
Re: Use single quotes ' instead of double quotes " around each letter. | |
Re: 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. | |
Re: 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. | |
Re: 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? | |
Re: 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. | |
Re: 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? | |
Re: 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] | |
Re: 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 … | |
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 … | |
Re: 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. | |
Re: 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 … | |
Re: [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. | |
Re: I don't see anything obviously wrong so I'd guess your SQL isn't returning anything. | |
Re: To explain a little more, foreach expects the last argument (the one after the in) to have implemented the interface IEnumerable or IEnumberable<T>. | |
Re: You are doing it wrong. Since you posted no code showing what you are doing, that's the best answer that can be given. | |
Re: 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"; } … | |
Re: Line 20 should be ExecuteNonQuery, which returns the number of records changed. | |
Re: Post your problem, I'll see if I can help (though it has been many years since I've worked with COBOL :)) | |
Re: 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. | |
Re: Which line gives you the error? The first one or the fourth? | |
Re: Create a new form for your pop-up window. Put a DataGridView on it. Bind the query to the DataGridView. Done. | |
Re: First tell us what office repairing software is. | |
Re: Just a question: Why use interop vs the [URL="http://msdn.microsoft.com/en-us/library/microsoft.win32.registry.aspx"]Registry[/URL] class? | |
Re: [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] | |
Re: [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++) … | |
Re: 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. | |
Re: 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. | |
Re: [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 :) | |
Re: [code]String s = string.Empty.PadLeft(6, '-');[/code] Replace the six with your variable. No loops required. | |
Re: 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. | |
Re: 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). | |
Re: 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] | |
Re: 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] |
The End.