|
|
【入门C作业】【strcmp / for / while】 #25楼 有Debug Coding提供。 |
原帖由 无我不在 于 2009-1-11 05:52 PM 发表
是不是在case ‘C’ 出现问题?还是在case 'B'的算术中的variable不能存储之前的资料?因为只能出现最后一次的资料。
case 'C' : printf("Enter Your NRIC: ");
flushall();
gets(icno_search);
if(strcmp(icno[a], icno_search) == 0)
{
printf("\n\nYour Total Amount Payment");
printf("\n=========================");
printf("\nNRIC\t\t\t : %s", icno[a]);
printf("\nName\t\t\t : %s", name[a]);
printf("\nDate of Brith\t\t : %s\n", DOB[a]);
printf("Sex\t\t\t : %c\n\n", sex[a]);
printf("Total income\t\t : $%9.2f\n", total_income[a]);
printf("\t\tLess relief: -$%9.2f\n", total_relief[a]);
printf("Total taxable amount\t : $%9.2f\n", taxable_amount[a]);
printf("\t\tLess rebate: -$%9.2f\n", total_rebate[a]);
printf("\n");
printf("Amount payment\t\t : $%9.2f\n", amount_payment[a]);
}
printf("\n");
printf("**If you don't use this Tax Advisor Program, please press D to QUIT.\n\n\n");
break;
JBTALKS.CC |联系我们 |隐私政策 |Share
GMT+8, 2025-10-28 09:05 AM , Processed in 0.098574 second(s), 19 queries .
Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.
本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved
Dedicated Server powered by iCore Technology Sdn. Bhd.