字母+数字 排序 c#
Problem statement: Write a C++ program to sort N names in alphabetical order.
问题陈述:编写一个C ++程序以字母顺序对N个名称进行排序 。
Example & explanation:
示例与说明:
Let user inputs 5 names as following:
让用户输入5个名称,如下所示:
rahul
virat
vijay
bumrah
rahane
Alphabetical sorting means to sort names according to alphabet order starting from the rightmost character. (Rightmost character->'r' for 'rahul').
字母排序意味着从最右边的字符开始按照字母顺序对名称进行排序 。 (最右边的字符-> 'r'代表'rahul' )。
That means, in the 'rahul' precedes 'vijay' in alphabetical order since rightmost character of 'rahul' is 'r' where as rightmost character of 'vijay' is 'v' & 'r' precedes 'v' in alphabetical order.
这意味着,在“拉胡”先于“维杰”按字母顺序排列,因为“的Rahul”是“R”,其中,作为“维杰”最右边的字符是