Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CExpression

Get the result of a Expression with +,-,,/,%,&,|,<<,>>,(,) 获得由=,-,,/,%,&,|,<<,>>,(,)组成的数学表达式的结果

/********************************************************************************

  • Copyright (C), 2012 鹤壁华盛 罗树鹏
  • 【本例程采用Visual Studio 2010 SP1 并在Windows XP SP3上测试通过】
  • 【作者联系方式:luoshupeng@gmail.com
  • 本例程实现功能:
  •   1.实现基本数学公式的计算
    
  •   2.支持的运算符有:+(加或正数),-(减或负数),*(乘),/(除),%(求模),()(括号),
    
  •   		&(按位与),|(按位或),<<(左移),>>(右移)
    
  •   3.运算符优先级与C语言运算符优先级相同
    
  • 文件历史:
  • 版本号 日期 作者 说明
  • V1.0 2012-05-09 罗树鹏 创建并完成功能

/ /****************

  • 此项目转给ChinaLuo组织 */

About

Get the result of a Expression with +,-,*,/,%,&,|,<<,>>,(,)

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages