编写程序,从键盘接收一个简单的表示四则运算的表达式,计算结果并输出。例如,输入“20+32”,输出“
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/30 22:00:03
![编写程序,从键盘接收一个简单的表示四则运算的表达式,计算结果并输出。例如,输入“20+32”,输出“](/uploads/image/f/35276-68-6.jpg?t=%E7%BC%96%E5%86%99%E7%A8%8B%E5%BA%8F%EF%BC%8C%E4%BB%8E%E9%94%AE%E7%9B%98%E6%8E%A5%E6%94%B6%E4%B8%80%E4%B8%AA%E7%AE%80%E5%8D%95%E7%9A%84%E8%A1%A8%E7%A4%BA%E5%9B%9B%E5%88%99%E8%BF%90%E7%AE%97%E7%9A%84%E8%A1%A8%E8%BE%BE%E5%BC%8F%EF%BC%8C%E8%AE%A1%E7%AE%97%E7%BB%93%E6%9E%9C%E5%B9%B6%E8%BE%93%E5%87%BA%E3%80%82%E4%BE%8B%E5%A6%82%EF%BC%8C%E8%BE%93%E5%85%A5%E2%80%9C20%2B32%E2%80%9D%EF%BC%8C%E8%BE%93%E5%87%BA%E2%80%9C)
Fatal error: Uncaught Error: Call to undefined method pdo_mysql::sqlError() in /mnt/www/zhanqunzuoye/library/mysql/pdo_mysql.php:106 Stack trace: #0 /mnt/www/zhanqunzuoye/library/mysql/pdo_mysql.php(61): pdo_mysql->getPDOError('select id,title...') #1 /mnt/www/zhanqunzuoye/library/mysql/pdo_mysql.php(80): pdo_mysql->_fetch('select id,title...', 1) #2 /mnt/www/zhanqunzuoye/library/mysql/pdo_mysql.php(179): pdo_mysql->getAll('select id,title...') #3 /mnt/www/zhanqunzuoye/library/mysql/mtable.php(88): pdo_mysql->getAllPdo('select id,title...', NULL) #4 /mnt/www/zhanqunzuoye/control/public/indexControl.php(40): mtable->getAll('select id,title...') #5 /mnt/www/zhanqunzuoye/library/core/core.php(84): indexControl->sorandAction() #6 /mnt/www/zhanqunzuoye/library/core/control.php(45): core::gotoAction(Array) #7 /mnt/www/zhanqunzuoye/view/public/focus/show.php(15): control->action('sorand', 'index') #8 /mnt/www/zhanqunzuoye/library/core/control.php(24): require('/mnt/www/zhanqu...') #9 /mnt/www/zhanqunzuoye/control/public/focusCon in /mnt/www/zhanqunzuoye/library/mysql/pdo_mysql.php on line 106