Generate an array of letters of alphabet in non-english and add different value for each letter in C# or

How to generate an alphabet (strAbc) and add a different value (strAbcVal) to each letter (strAbc) where some letters have a two char, like (DŽ,NJ,LJ), and than sum string sName Can you help me?

dim sName as string ="LJILJANA"

dim strAbc as string ="A,B,C,D,Đ,DŽ,E,F,G,H,I,J,K,L,LJ,M,N,NJ,O,P,R,S,Š,T,U,V,Z,Ž"

dim strAbcVal as string="11,2,7,14,5,9,7,15,9,10,16,12,9,3,5,4,12,11,22,70,61,22,50,14,1,2,7,15,19,40"


Now this is just a guess, because I'm not sure what you're aiming for but did you consider using a Dictionary object?

A Dictionary works like a dictionary in the real world. You have the unique keys and to each such key you have a corresponding value. In your case, the letters (or combos of letters) would be the keys and the numbers the actual values.

(Of course, since ut seems to be a 1-to-1 relation, the numbers can be used as keys as well.)

Please elaborate on your goal.

Need Your Help

dlmalloc + CPP + strdup + Mac OS X = crash

c++ osx

I am using the dlmalloc library on Mac OS X in a mixed C/C++ environment.

WCF FaultException

c# .net wcf faultexception

When building a WCF service, if I don't include my contract for the FaultException in the service, I'm able to create a WCF service reference on the client with all of the members included in the

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.