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

函数scanf()对字符串操作遇到的问题及处理
引用本文:周炜,耿文霞.函数scanf()对字符串操作遇到的问题及处理[J].洛阳师范学院学报,2001,20(2):83-84.
作者姓名:周炜  耿文霞
作者单位:洛阳师范学院计算机系,河南,洛阳,471022
摘    要:C语言中 ,scanf( )函数是一个控制台输入函数 .可以用它输入任何类型的多个数据 .但是对字符串进行输入时 ,如果使用不当 ,会出现严重的问题 ,使变量得不到值或得到错误的值 .本文就常见的问题分析其原因 ,同时给出正确的使用方法 .

关 键 词:指针  字符串  指针数组  结构体
文章编号:1009-4970(2001)02-0083-02
修稿时间:2000年12月11

Problems and Handling in Character String Manipulation with Scanf () Function
ZHOU Wei ,GENG Wen xia.Problems and Handling in Character String Manipulation with Scanf () Function[J].Journal of Luoyang Teachers College,2001,20(2):83-84.
Authors:ZHOU Wei  GENG Wen xia
Institution:ZHOU Wei 1,GENG Wen xia 2
Abstract:In C programming jargon, the scanf() is a input function. It can be used to input various types of multi data. However, when it is misused in inputting character strings, no or wrong value would be concluded. The thesis is to analyse the reasons of some chronic problems and offer appropriate usage of them.
Keywords:point  character string  point array  structure
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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