码迷,mamicode.com
首页 >  
搜索关键字:gets    ( 3597个结果
C app
1,C 输入输出字符串另一种方法gets/puts 函数warning: the `gets' function is dangerous and should not be used2,C 程序中使用system执行OS 命令行,并在system中使用变量(实现linux passwordLess...
分类:移动开发   时间:2015-03-30 20:47:27    阅读次数:141
[HiHoCoder]#1094 : Lost in the City 微软苏州校招笔试 12月27日
时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Little Hi gets lost in the city. He does not know where he is. He does not know which direction is north. Fortunately, Little Hi has a map of th...
分类:其他好文   时间:2015-03-22 09:13:39    阅读次数:224
CSUOJ 1526 Beam me out!
Beam me out!King Remark, first of his name, is a benign ruler and every wrongdoer gets a second chance after repenting his crimes in the Great Maze!To...
分类:其他好文   时间:2015-03-20 20:24:09    阅读次数:154
C语言 C Primer Plus学习笔记
持续更新...scant的gets区别strlen和sizeof的区别常量的用法: 1>预处理器 #define PI 3.14 (ps:编译时替换,一般用大写,可以修改) 2>const 修饰符 const int MONTH = 12; (ps:不能修改,const修饰谁,谁就只读) ...
分类:编程语言   时间:2015-03-19 13:04:14    阅读次数:146
字符串处理过程的错误
#include#includeusing namespace std;int main(){ int T;char *p1,*p2,*p3,str[1200]={0};cin>>T;while(T--){gets(str);p3=p2=p1=str;for(;;p1++){if(*p1==' '|...
分类:其他好文   时间:2015-03-18 15:41:54    阅读次数:111
C语言gets函数,fgets函数的使用
gets从标准输入设备读字符串函数。可以无限读取,不会判断上限,以回车结束读取。函数的具体功能如下所示:从stdin流中读取字符串,直至接受到换行符或EOF时停止,并将读取的结果存放在buffer指针所指向的字符数组中。换行符不作为读取串的内容,读取的换行符被转换为‘\0’空字符,并由此来结束字.....
分类:编程语言   时间:2015-03-15 10:45:31    阅读次数:365
深入浅出scanf、getcha、gets、cin函数
转:问题描述一:(分析scanf()和getchar()读取字符) scanf(), getchar()等都是标准输入函数,一般人都会觉得这几个函数非常简单,没什么特殊的。但是有时候却就是因为使用这些函数除了问题,却找不出其中的原因。下面先看一个很简单的程序:程序1: #include int m....
分类:其他好文   时间:2015-03-14 19:55:54    阅读次数:216
关于课堂上Exercise#1的讨论
Software Testing_1b-rev page17Exercise#1代码内容:#include int main(void){ char buff[10]; memset(buff,0,sizeof(buff)); gets(buff); printf(...
分类:其他好文   时间:2015-03-14 19:52:50    阅读次数:108
【POJ2886】【线段树】Who Gets the Most Candies?
DescriptionN children are sitting in a circle to play a game.The children are numbered from 1 to N in clockwise order. Each of them has a card with a ...
分类:其他好文   时间:2015-03-14 10:59:21    阅读次数:169
有趣的C语言题
1 #include 2 int main(void)3 {4 char buff[10];5 memset(buff,0,sizeof(buff));6 gets(buff);7 printf("\n The buffer entered is [%s]\n",bu...
分类:编程语言   时间:2015-03-14 10:53:24    阅读次数:158
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!