节点文献

函数scanf()对字符串操作遇到的问题及处理

Problems and Handling in Character String Manipulation with Scanf () Function

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 周炜耿文霞

【Author】 ZHOU Wei 1, GENG Wen xia 2 (Computer Science Department, Luoyang Teachers College, Luoyang 471022, China)

【机构】 洛阳师范学院计算机系!河南洛阳471022

【摘要】 C语言中 ,scanf( )函数是一个控制台输入函数 .可以用它输入任何类型的多个数据 .但是对字符串进行输入时 ,如果使用不当 ,会出现严重的问题 ,使变量得不到值或得到错误的值 .本文就常见的问题分析其原因 ,同时给出正确的使用方法 .

【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.

【关键词】 指针字符串指针数组结构体
【Key words】 pointcharacter stringpoint arraystructure
  • 【文献出处】 洛阳师范学院学报 ,Journal of Luoyang Teachers College , 编辑部邮箱 ,2001年02期
  • 【分类号】TP312
  • 【下载频次】44
节点文献中: 

本文链接的文献网络图示:

本文的引文网络