LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

alphabets to numbers


maak wrote:

yes sir u rite that is wat i want to do but i want to treat each alphabet spreatly than it will be more accurate


It's either right or wrong. "Accuracy" has no meaning here. 🙂

 

You need to use fixed width numbers padded with 0 to a width of two, or you need to use some type of delimiters.

0 Kudos
Message 11 of 22
(1,514 Views)

maak wrote:

yes sir u rite that is wat i want to do but i want to treat each alphabet spreatly than it will be more accurate

 


 

Exactly what does that mean?  Do you want to have spaces between each set of numbers that represent one letter?

 

By the way, they are "letters", a group of letters make up an "alphabet".Smiley Wink

0 Kudos
Message 12 of 22
(1,512 Views)

sir

look for example if i write AHAD i want to encrypt it so want i m tryng to do is letter A is taken as 0 then 7 is added in it and wat ever is the seventh letter that is given out

AHAD=0704

so 0+7=7

     7+7=14

0+7=7

4+7=11

so nw wat ever is against 

7=

14=

7= 

 11=

is diplayed 

0 Kudos
Message 13 of 22
(1,506 Views)

Doesn't fit the description of "encryption".

 

Looks like you are trying to calculate a checksum, perhaps? Who knows?

 

Why don't you take two steps back and tell us in more general terms what you need. Do you have a link that describes the algoritm you are trying to implement?

0 Kudos
Message 14 of 22
(1,498 Views)

This code will take your string, let you enter an offset and report back the "encoded" version.  Is this what you want?

 

 
 

Message Edited by jmcbee on 10-07-2008 03:55 PM
0 Kudos
Message 15 of 22
(1,496 Views)
sir plz just tell me how can i treat each letter speratley and assing the numeric values to thm
0 Kudos
Message 16 of 22
(1,492 Views)
Put the array of U8 in a for loop and touch each element.
0 Kudos
Message 17 of 22
(1,490 Views)

maak wrote:
sir plz just tell me how can i treat each letter speratley and assing the numeric values to thm

Use the code right above your post, but don't convert it back to a string at the end. Now it's "numeric". 😄

0 Kudos
Message 18 of 22
(1,486 Views)

sir plz help me out

 

0 Kudos
Message 19 of 22
(1,475 Views)

Please take your time and write a few paragraphs explaining exactly what you want. We offered plenty of solutions and asked clarifying questions, so it is up to you to be more clear what you need and what's wrong with the solutions offered so far.

 

It would also help if you could write complete sentences. It is not suitable to communicate in text message style (e.g. "sir plz help me out"). We don't pay by the byte, so use as many charcters as you possibly need to make the problem more clear. Good luck! 🙂

 

Maybe you could even make a small example VI that contains a control with typical input data and an indicator of what kind of result you expect as default values. 🙂

Message 20 of 22
(1,454 Views)