码迷,mamicode.com
首页 >  
搜索关键字:getchar    ( 2598个结果
PAT 1077 Kuchiguse
#include #include #include #include using namespace std;int main() { int n = 0; cin>>n; getchar(); vector strs; for (int i=0; i= len) b...
分类:其他好文   时间:2014-10-31 23:27:34    阅读次数:277
BZOJ1016 && JSOI2008] 最小生成树计数
题目链接:点击打开链接 裸题 #pragma comment(linker, "/STACK:1024000000,1024000000") #include #include #include #include #include template inline bool rd(T &ret) { char c; int sgn; if (c = getchar(), ...
分类:Web程序   时间:2014-10-31 15:40:44    阅读次数:270
SPOJ 104 Highways 最小生成树计数
题目链接:点击打开链接 题意: 给定n个点m条边的无向图,问最小生成树有几个。 思路: 模版 #pragma comment(linker, "/STACK:1024000000,1024000000") #include template inline bool rd(T &ret) { char c; int sgn; if(c=getchar(),c==EOF) ...
分类:其他好文   时间:2014-10-31 11:57:42    阅读次数:169
272 TEX Quotes
#includeint main(){ char a; int b=1; while((a=getchar())!=EOF) { if(a=='"'&&b==1) { printf("``"); b=...
分类:其他好文   时间:2014-10-31 10:06:17    阅读次数:315
UVa 498 - Polly the Polynomial
题目:一直多项式的系数,求不同的x对应多项式的值。 分析:数学题,简单题。直接代入多项式计算即可。 说明:注意输入格式。 #include #include #include #include using namespace std; int temp,c[10000]; int main() { int n; while ((temp = getchar()) != E...
分类:其他好文   时间:2014-10-29 19:26:20    阅读次数:309
C++关键知识
//>第一章节整理复习//c++编程技术要点/*//1、虚函数及多态的实现//演示多态技术#include using namespace std;void Demo();int main(){Demo();getchar();return 0;}class Graphic{public:virtual void Draw();}; //END CLASS DEFINITION Graphicvo...
分类:编程语言   时间:2014-10-28 12:13:36    阅读次数:336
HDU 3853 LOOPS 概率dp(水
水水过~ #include #include #include #include #include template inline bool rd(T &ret) { char c; int sgn; if(c=getchar(),c==EOF) return 0; while(c!='-'&&(c'9')) c=getchar(); ...
分类:其他好文   时间:2014-10-26 00:26:40    阅读次数:185
C学习
\a:警报1、exit(),提前结束程序。include 2、getch()无缓存、getchar()有缓存,多条连用时注意末尾换行符否则始终、putchar()、putch()3、ctype.h:isalpha()是否字母、isdigit()、isupper()、islower()、toupper...
分类:其他好文   时间:2014-10-24 14:18:58    阅读次数:178
c语言求字符串中大写字母个数,单词个数,子串个数及一个整数是否为回文数
#include #include #pragma mark 统计从终端输入的字符中每个大写字母的个数。用#号作为输入结束标志int main(){ int num[26] = {0}, i; char c; while ((c = getchar())!='#') { if (isupp...
分类:编程语言   时间:2014-10-21 13:40:46    阅读次数:246
fgetc和fputc函数
1、输入函数以下三个函数可用于一次读一个字符。#include int getc( FILE *fp );int fgetc( FILE *fp );int getchar( void );三个函数的返回值:若成功则返回下一个字符,若已到达文件结尾或出错则返回EOF函数getchar等价于getc(...
分类:其他好文   时间:2014-10-20 22:43:27    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!