一、实验代码: include int main () { int unhappy = 0, sad = 0, happy = 0, profit = 0; char c; while ( ( c = getchar() ) != '$' ) { if ( unhappy && !happy ) { Read More
posted @ 2019-02-19 13:07 rimary Views(147) Comments(0) Diggs(0) Edit
7 1 币值转换 (20 分) 输入一个整数(位数不超过9位)代表一个人民币值(单位为元),请转换成财务要求的大写中文格式。如23108元,转换后变成“贰万叁仟壹百零捌”元。为了简化输出,用小写英文字母a j顺序代表大写数字0 9,用S、B、Q、W、Y分别代表拾、百、仟、万、亿。于是23108元应被 Read More
posted @ 2019-02-19 12:51 rimary Views(109) Comments(0) Diggs(0) Edit