*/
Love this site? Hate it? Leave us some comments.
*/

The cat with a glass eye and fire in the tail

Theme Graphic
Theme Graphic

The cat with a glass eye and fire in the tail

Welcome estimated programmers: Here you will find my various articles. I hope they serve to give different solutions to their problems and that they can enjoy reading as much as I do in its...
Posted on Wednesday, July 09, 2008 at 11:34 PM

Combining

Create a function to make a dictionary of brute force of 4 rows and keep it all in one file. An example of brute force:
yyyy 
aaab 
aaac 
aaad 
AAAE 
.. 
.. 
.. 
zzzy 
zzzz
My Solutions Resources should not be the fastest. The recursion for the whole chain comes in 3 lines but for a specific number of characters is a little more complicated. In this case my code allows them to specify the number of characters to combine with all the characters of an array of char. The builder asks you to file to create (or save) the index, which is the amount of characters and finally to combine an array of characters as a reference. Special thanks to cousin William UH, because without it had not clarified some of combinatorial problems in general.
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace ECDundy.Programmer
{
    class ECDundy_Combinatorial
    {
        static void Main(string[] args)
        {...
Comments: 0 Tags: None

Posted on Thursday, July 03, 2008 at 6:45 PM

C# Errors common compiled with operations. What is the solution?

Here causing some big problems in algorithms and operations. To show he made a code of evidence with which may observe the different branches of this problem in the strict compilation of c #.

List<object> objects = new List<object>();
 objects.Add(int.MaxValue+1); 
 //Error! Compile: "The operation overflows at compile time in checked mode"
 objects.Add(2147483647 + 1); 
 //Error! Compile: "The operation overflows at compile time in checked mode"         
 //Where 2147483647==int.MaxValue==Int32.MaxValue;
 objects.Add(Int32.MaxValue + 1);
 //Error! Compile: "The operation overflows at compile time in checked mode"
 objects.Add(Int64.MaxValue + 1);
 //Error! Compile: "The operation overflows at compile time in checked mode"
 //Where 9223372036854775807==int64.maxvalue; 
 objects.Add(9223372036854775807 + 1);
 //Error! Compile: "The operation overflows at compile time in checked mode"
 objects.Add(Int16.MaxValue + 9223372036854775808 );...
Comments: 0 Tags: None


corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.