首页 | 本学科首页   官方微博 | 高级检索  
     

C语言程序设计中的若干疑难问题及其解决方法
引用本文:汪华登.C语言程序设计中的若干疑难问题及其解决方法[J].数字社区&智能家居,2006(23).
作者姓名:汪华登
作者单位:桂林电子科技大学计算机系 广西桂林541004
摘    要:详细介绍了C语言程序设计中容易遇到的几个疑难问题及其解决方法,并给出了示例。包括如何正确设置开发环境,缓冲区的数据要及时清理,输入结构体变量的float型成员的值可先赋给一个中间变量,给结构体指针变量赋值前应该先分配内存空间,代表空值的NULL的拼写形式不能随意改变。

关 键 词:程序设计  缓冲区  指针  结构体

Some Problems and Their Solutions in C Programming
WANG Hua-deng.Some Problems and Their Solutions in C Programming[J].Digital Community & Smart Home,2006(23).
Authors:WANG Hua-deng
Abstract:Some problems and their solutions in C programming were discussed with in detail in this paper, and relevant examples were given. Including how to properly set up the development environment; the superfluous data which are left in buffer should be cleaned up by function fflush(stdin) or flushall() in time; the data for a float-type member variable of a struct-variable can't be got directly but via another float variable; the memory should be allocated before a struct-pointer get its value; and the spelling of NULL should not be any other formats.
Keywords:program design  buffer  pointer  struct
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号