prints out the corresponding digit on the telephone

时间:2015-03-28 20:26:41
【文件属性】:

文件名称:prints out the corresponding digit on the telephone

文件大小:3KB

文件格式:CPP

更新时间:2015-03-28 20:26:41

C++

Write a C++ function that receives a single letter and prints out the corresponding digit on the telephone. The letters and digits on a telephone are grouped this way: 2 = ABC 3 = DEF 4 = GHI 5 = JKL 6 = MNO 7 = PRS 8 = TUV 9 = WXY No digit corresponds to either Q or Z. For these 2 letters your program should print a message indicating that they are not used on a telephone. program should accept only uppercase letters (error message for special characters or lowercase letters)


网友评论