全国计算机等级考试二级C语言程序设计实战(95)计算机等级考试

文章作者 100test 发表时间 2010:01:02 06:58:27
来源 100Test.Com百考试题网


  题目:家庭财务管理小程序
  1.程序分析:
  2.程序源代码:
  /*money management system*/
  #include "stdio.h"
  #include "dos.h"
  main()
  {
  FILE *fp.
  struct date d.
  float sum,chm=0.0.
  int len,i,j=0.
  int c.
  char ch[4]="",ch1[16]="",chtime[12]="",chshop[16],chmoney[8].
  pp: clrscr().
  sum=0.0.
  gotoxy(1,1).printf("|---------------------------------------------------------------------------|").
  gotoxy(1,2).printf("| money management system(C1.0) 2000.03 |").
  gotoxy(1,3).printf("|---------------------------------------------------------------------------|").
  gotoxy(1,4).printf("| -- money records -- | -- today cost list -- |").
  gotoxy(1,5).printf("| ------------------------ |-------------------------------------|").
  gotoxy(1,6).printf("| date: -------------- | |").
  gotoxy(1,7).printf("| | | | |").
  gotoxy(1,8).printf("| -------------- | |").
  gotoxy(1,9).printf("| thgs: ------------------ | |").
  gotoxy(1,10).printf("| | | | |").
  gotoxy(1,11).printf("| ------------------ | |").
  gotoxy(1,12).printf("| cost: ---------- | |").
  gotoxy(1,13).printf("| | | | |").
  gotoxy(1,14).printf("| ---------- | |").
  gotoxy(1,15).printf("| | |").
  gotoxy(1,16).printf("| | |").
  gotoxy(1,17).printf("| | |").
  gotoxy(1,18).printf("| | |").
  gotoxy(1,19).printf("| | |").
  gotoxy(1,20).printf("| | |").
  gotoxy(1,21).printf("| | |").
  gotoxy(1,22).printf("| | |").
  gotoxy(1,23).printf("|---------------------------------------------------------------------------|").
  i=0.
  getdate(

相关文章


全国计算机等级考试二级C语言程序设计实战(99)计算机等级考试
全国计算机等级考试二级C语言程序设计实战(98)计算机等级考试
全国计算机等级考试二级C语言程序设计实战(97)计算机等级考试
全国计算机等级考试二级C语言程序设计实战(96)计算机等级考试
全国计算机等级考试二级C语言程序设计实战(95)计算机等级考试
全国计算机等级考试二级C语言程序设计实战(94)计算机等级考试
全国计算机等级考试二级C语言程序设计实战(93)计算机等级考试
全国计算机等级考试二级C语言程序设计实战(92)计算机等级考试
全国计算机等级考试二级C语言程序设计实战(91)计算机等级考试
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛