<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">
<TITLE>Message</TITLE>

<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2712.300" name=GENERATOR>
<META content="Microsoft Word 10" name=Originator><LINK 
href="cid:filelist.xml@01C19922.0386FAC0" rel=File-List><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:UseFELayout/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<STYLE>@font-face {
        font-family: MS Mincho;
}
@font-face {
        font-family: @MS Mincho;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "MS Mincho"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "MS Mincho"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "MS Mincho"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.GramE {
        mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=EN-US style="tab-interval: .5in" vLink=purple link=blue>
<DIV><SPAN class=059113014-09012002><FONT face=Arial color=#0000ff 
size=2>Najlazje da ga izracunas na podlagi ASCII kod iz 
stringa:</FONT></SPAN></DIV>
<DIV><SPAN class=059113014-09012002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=059113014-09012002><FONT face=Arial color=#0000ff size=2>v 
pascalu:</FONT></SPAN></DIV>
<DIV><SPAN class=059113014-09012002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=059113014-09012002><FONT face="Courier New" size=2>function 
genKey(key: string): integer;</FONT></SPAN></DIV>
<DIV><SPAN class=059113014-09012002><FONT face="Courier New" size=2>var keyc: 
integer;</FONT></SPAN></DIV>
<DIV><SPAN class=059113014-09012002><FONT face="Courier New" 
size=2>begin</FONT></SPAN></DIV>
<DIV><SPAN class=059113014-09012002><FONT face="Courier New" size=2>&nbsp; for 
i:=1 to length(key) do<BR>&nbsp;&nbsp;&nbsp; 
keyc:=keyc+ord(key[i]);</FONT></SPAN></DIV>
<DIV><SPAN class=059113014-09012002><FONT face="Courier New" size=2>&nbsp; 
genKey:=keyc;</FONT></SPAN></DIV>
<DIV><SPAN class=059113014-09012002><FONT face="Courier New" 
size=2>end;</FONT></SPAN><SPAN class=059113014-09012002><BR></SPAN><FONT 
face=Verdana><FONT size=2><STRONG></STRONG></FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>Lep 
pozdrav!<BR></STRONG><BR></FONT></FONT><FONT face=Tahoma color=#006b9f 
size=2><STRONG>Uro¹ Gaber<BR></STRONG></FONT><A 
href="http://www.powercom-si.com/"><FONT face=Tahoma color=#408080 
size=2><STRONG>PowerCom Gaber &amp; Globoènik d.n.o.</STRONG></FONT></A><FONT 
face=Arial><BR></FONT><FONT color=#808080><FONT face=Tahoma><FONT 
size=1><STRONG>Kersnikova 6, 1234 Menge¹, Slovenia<BR>P.E.: Cesta talcev 19b, 
1230 Dom¾ale, Slovenia</STRONG></FONT><BR></FONT></FONT><FONT size=2><FONT 
face=Tahoma><STRONG><FONT color=#006b9f>Mobile:</STRONG> <STRONG><FONT 
color=#0080c0>+386 (0)</FONT></STRONG></FONT></FONT><FONT size=2><FONT 
face=Tahoma><STRONG><FONT color=#0080c0>40 848-001</FONT><BR><FONT 
color=#006b9f>Fax:</FONT></STRONG> <STRONG><FONT color=#0080c0>+386 
(0)</FONT></STRONG></FONT></FONT><FONT size=2><FONT face=Tahoma><FONT 
color=#0080c0><STRONG>40 848-026</STRONG><BR></FONT><STRONG><FONT 
color=#006b9f>Phone office:</FONT></STRONG> <STRONG><FONT color=#0080c0>+386 
(</FONT></STRONG></FONT></FONT><FONT size=2><FONT face=Tahoma><FONT 
color=#0080c0><STRONG>0)1 724-84-26<BR><FONT color=#006b9f>Fax 
office:</FONT></STRONG></FONT> <STRONG><FONT color=#0080c0>+386 
(</FONT></STRONG></FONT></FONT><FONT size=2><FONT face=Tahoma><FONT 
color=#0080c0><STRONG>0)1 724-84-27</STRONG><BR></FONT><STRONG><FONT 
color=#006b9f>eMail:</FONT></STRONG> </FONT></FONT></FONT><A 
href="mailto:uros@powercom-si.com"><FONT face=Tahoma color=#408080 
size=2><STRONG>uros@powercom-si.com</STRONG></FONT></A></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Simon Mavsar 
  [mailto:simon.mavsar@hermes.si] <BR><B>Sent:</B> Wednesday, January 09, 2002 
  3:30 PM<BR><B>To:</B> 'lugos-prog@lugos.si'<BR><B>Subject:</B> [LUGOS-PROG] 
  bijektivna preslikava iz stringa v int<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Zivjo,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><SPAN class=GramE><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Ima kdo kaksno idejo za 
  generiranje kljuca tipa integer iz stringa?</SPAN></FONT></SPAN><FONT 
  face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><SPAN class=GramE><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Preslikava mora biti 
  bijektivna.</SPAN></FONT></SPAN><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> (<SPAN class=GramE>dva</SPAN> 
  razlicna stringa ne smeta dati istega kljuca).<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Primer:<SPAN 
  style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>(char *) string -- 
  &gt; (long <SPAN class=GramE>int )</SPAN> key<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><SPAN class=GramE><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">Lp</SPAN></FONT></SPAN>,<o:p></o:p></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">Simon<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>