11-19-2014 01:32 PM
Is this a homework assignment?
11-19-2014 01:48 PM
@billko wrote:
Is this a homework assignment?
Almost definitely. Otherwise, I can't see a valid use-case for changing A to 1 and vice versa.
But, in order to do your homework for you we need to know what you're working with.
Is the string always going to be a single character? Is the character always uppercase/lowercase or can it be either? What should the program do if the string is longer than a character? Is the same input supposed to take the strings and the numbers to convert or do we want to use a different structure to convert numbers back to letters? This impacts the data type used for the "number." In that respect, should the number be output as a string or as a numerical data type? Does it matter?
Repeating the same thing over and over doesn't offer any additional information. When people are telling you the information you've provided isn't enough to help you do your homework, you need to provide more information. Otherwise, you're wasting your time and theirs.
11-19-2014 01:59 PM - edited 11-19-2014 02:00 PM
@marii wrote:
i want A program that for each name (string) Give us a decimal number in labview,help me
Sounds like a perfect place for Variant Attributes!
11-19-2014 02:00 PM
@marii wrote:
i want to use case structure,
Determination the number of letters in the name,
Assign a number to name,
and Vice versa
Is this now a different problem or are we still talking about the original problem discussed above?
Why do you need a case structure? What should the cases be?
Vice versa will problaby not work: If you only know the number of letters in a name, you are unlikely to find the name again.
11-20-2014 09:11 AM
Have you tried an Enum?