码迷,mamicode.com
首页 >  
搜索关键字:puts    ( 2099个结果
011-指针(上)-C语言笔记
学习目标1.【掌握】字符串常用函数2.【掌握】指针变量的声明3.【掌握】指针变量的初始化4.【掌握】函数与指针5.【掌握】指针的数据类型6.【掌握】多级指针7.【掌握】指针与数组一、字符串常用函数puts和gets函数的声明在stdio.h头文件中,strcmp、strlen、strcpy、strc...
分类:编程语言   时间:2015-10-08 22:47:42    阅读次数:275
argz_extract()函数,argz_stringify()函数
函数分别位于glibc源码中的../glibc-version/string/argz-extract.c和../glibc-version/string/argz-stringify.c中。 函数声明如下: //?argz.h /*?Puts?pointers?to?each?string?in?ARGZ?into?ARGV,...
分类:其他好文   时间:2015-10-07 06:29:40    阅读次数:273
【BZOJ3450】【Tyvj1952】Easy 可能DP
联系:#include int main(){ puts("转载请注明出处[辗转山河弋流歌 by 空灰冰魂]谢谢"); puts("网址:blog.csdn.net/vmurder/article/details/46471319");}题解:设 L 为当前期望后缀 o ...
分类:其他好文   时间:2015-10-05 18:12:04    阅读次数:157
C语言细节——献给入门者(一)
C语言细节——献给入门者(一)主题 输入输出需要注意的细节 首先我们要知道大致有scanf(),printf(),getchar(),putchar(),gets(),puts()这几种输入方式。1??.scanf()&gets()首先看个最普通的例子:char str[20];scanf(“%s”...
分类:编程语言   时间:2015-10-02 23:44:43    阅读次数:245
Codeforces Round #320 (Div. 1) [Bayan Thanks-Round] A A Problem about Polyline
题目中给出的函数具有周期性,总可以移动到第一个周期内,当然,ausing namespace std;int main(){ int a,b; scanf("%d%d",&a,&b); if(a<b) puts("-1"); else { int t1 = a+b, ...
分类:其他好文   时间:2015-09-17 10:02:49    阅读次数:146
expect 参数处理之一
expect 参数处理之一expect是很强悍的脚本,网上资源虽然很经典,但很少,我把自己的测试脚本贴之,仅作参考 #!/usr/bin/expect -f proc help {} { puts {usage: [-p ] [cmd] } } ...
分类:其他好文   时间:2015-09-04 14:01:49    阅读次数:125
C题库
1.下面的代码输出什么?为什么?void foo(void){unsigned int a = 6;int b = -20;(a+b > 6)?puts(“>6”):puts(“6”解析:a+b在这里做了隐式的转换,把int转化为unsigned int.编译器会把b当做一个很大的正数.2.下面的代...
分类:其他好文   时间:2015-08-19 10:59:11    阅读次数:237
HDU 1162 Eddy's picture (prime算法_裸题)
Problem Description Eddy begins to like painting pictures recently ,he is sure of himself to become a painter.Every day Eddy draws pictures in his small room, and he usually puts out his newest pic...
分类:编程语言   时间:2015-08-17 17:19:11    阅读次数:264
C语言scanf()和gets()及printf()和puts()的区别
一、scanf()和gets() 1.scanf() 所在头文件:stdio.h 语法:scanf(“格式控制字符串”,变量地址列表); 接受字符串时:scanf(“%s”,字符数组名或指针); 2.gets() 所在头文件:stdio.h 语法:gets(字符数组名或指针); 两者在接受字符串时: 1.不同点: scanf不能接受空格、制表符Tab、回车等; 而gets能够...
分类:编程语言   时间:2015-08-16 09:27:43    阅读次数:151
fgets和scanf的区别
fgets和scanf的区别1、测试使用scanf的一个例子:[cpp]view plaincopyprint?#include"stdio.h"#include"string.h"intmain(){charname[10];scanf("%s",name);puts(name);return0;...
分类:其他好文   时间:2015-08-09 01:37:39    阅读次数:219
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!