基于C语言的数学菜单的设计与实现
摘要:函数的定义与调用是C语言初学者的一个难点,用已知的数学知识去辅助理解未知的C语言函数知识,可以加速对新知识自定义C语言函数的学习过程,新知识可以反过来提升老知识的泛化能力。运用C语言编写了实现数学功能的三个函数,由易到难,从简单到复杂地定义和调用函数,取得较好的学习效果。
关键词: C语言; 函数定义;函数调用; 迁移学习法
中图分类号:TP311 文献标识码:A
文章编号:1009-3044(2021)33-0063-02
开放科学(资源服务)标识码(OSID):
Design and Realization of Math Menu Based on C Language Application of case-when in MySQL
YAN Yu
(Henan Normal University, Xinxiang 453007 China)
Abstract: Function definition and call is a difficult point for beginners of C language. Using known mathematical knowledge to assist in understanding unknown C language function knowledge can accelerate the learning process of customizing C language function with new knowledge, and the new knowledge can in turn improve the generalization ability of the old knowledge. Using C language to write three functions to realize the mathematical function, from easy to difficult, from simple to complex to define and call the function, get better learning effect.
Key words:C language; function definition;function call; transfer learning method
1 問题提出
C语言是多数专业的大一新生必学的一门专业基础课,学习目的是掌握程序设计的基本方法,会用计算机解决本专业的实际问题。