c语言编写四则运算.pdfVIP

  • 34
  • 0
  • 约8.02千字
  • 约 8页
  • 2021-04-03 发布于湖南
  • 举报
C语言编写四则运算 #includ e s tdi o、h // 计算器 # in clud e 〈ma ll oc、h #def ine STACK_S IZE? 100? ? // ma x size of the stack #define STACK_INCREMENT 10? //rea lloc size typed ef st ruc t FStack // stac k of int { ? float * base; float * top ; ? in t st acksi ze; } F St ack ; v oid Ini t( FStack * s) { ? s—b ase = ( flo at *) mallo c (STACK_SIZE* siz eof (FStack) ); if ( !s- base ) ? { ? ? p ri nt f( ”over flow!\n ”); ? ? re turn ; ? } ? s- >t op = s— base;

文档评论(0)

1亿VIP精品文档

相关文档