题解:
1.权位:如一千二百三十 1的权位是千,节以万为节
规则1:以10000为小节,小节的结尾即使是0,不使用0,
规则2:小节内两个非0的数之间使用0
规则3:当小节的千位事0,若小节的前一小节若无其他数字,则不用0,否则就要用0;
代码:
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
const char *chnNumChar[10] = {
"零","一","二","三","四"