中英文123456789数字和字母之间的相互转换

#include "stdafx.h"
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

using namespace std;


void Exersize4_6()
{
	cout<<"这是一个num英文转换程序"< szVecNum(10);
	szVecNum[0]="zero";
	szVecNum[1]="one";
	szVecNum[2]="two";
	szVecNum[3]="three";
	szVecNum[4]="four";
	szVecNum[5]="five";
	szVecNum[6]="six";
	szVecNum[7]="seven";
	szVecNum[8]="eight";
	szVecNum[9]="nine";
	string szInput;
	bool bError=false;
	while(cin>>szInput)
	{
		int nChoice=-1;
		stringstream sinType(szInput);

		double t;
		char p;
		if(!(sinType >> t))
			nChoice=2;
		else if(sinType >> p)
			nChoice=2;
		else
			nChoice=1;


		if (nChoice==1)
		{
			int nTempInt=-1;
			nTempInt=atoi(szInput.c_str());

			if (nTempInt>=0&&nTempInt<=9)
			{
				cout<

你可能感兴趣的:(C++)