编程之美--3.2电话号码对应英文单词

// phoneNumber.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"

#define telLength 2
int number[telLength]={4,2};
char c[10][10]=
{
	"",
	"",
	"ABC",
	"DEF",
	"GHI",
	"JKL",
	"MNO",
	"PQRS",
	"TUV",
	"WXYZ"
};
int answer[telLength]={0};
int total[10]={0,0,3,3,3,3,3,4,3,4};

void trave()
{
	while(true)
	{
		for(int i=0;i=0)
		{
			if(answer[k]


你可能感兴趣的:(编程)