码迷,mamicode.com
首页 >  
搜索关键字:ch    ( 3220个结果
HDU 3485 Count 101(递推)
C -Count 101Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 3485DescriptionYou know YaoYao is fond of his ch...
分类:其他好文   时间:2014-11-04 19:16:11    阅读次数:163
【NOIP模拟题】行动!行动!(spfa+优化)
spfa不加优化果断tle最后一个点。。。。。。。。。。。。。。。。。。。这题和ch的一题很像,只不过这题简单点,这是一个层次图,即有很多个相同的图,这些相同的图之间又存在着练习。。然后每一次队列存的状态是存两个信息的然后就玩了。。#include #include #include #includ...
分类:其他好文   时间:2014-11-04 14:32:57    阅读次数:292
利用netfilter机制,实现内核防火墙把http请求和回应的数据包截获后,解释出其中的http层数据
#include #include #include #include #include #include #include #include #include unsigned int change(int aChar,int hex) {     int ch;     ch = aChar - hex;     return ch; } unsigned cha...
分类:Web程序   时间:2014-11-04 13:10:22    阅读次数:231
关于*p++ (*p)++ *(p++)
charch[3]={‘a‘,‘c‘,‘e‘}; char*p=ch;1、printf("%c\n",*p++); printf("%c\n",*p);执行结果说明:首先*(指针运算符)和++(自增运算符)都属于单目运算符,优先性相同,且结合性都是自右向左。*p++先执行*p,即取出p指针指向的单元的内容,而后对p进行自增运算,即p指针指向原..
分类:其他好文   时间:2014-11-03 01:35:49    阅读次数:202
就算是C语言的陷阱吧?
2014年11月02日22:39:07 晚间测试int ch[] = {97, 97, 97, 0}; puts(ch); if (strcmp("AAA", ch)) { printf("real?true!"); }
分类:编程语言   时间:2014-11-02 23:48:39    阅读次数:160
大小写互换
大小写互换描述 现在给出了一个只包含大小写字母的字符串,不含空格和换行,要求把其中的大写换成小写,小写换成大写,然后输出互换后的字符串。输入第一行只有一个整数m(m#include using namespace std; char inverse(char ch) { if(ch>=...
分类:其他好文   时间:2014-11-02 18:09:24    阅读次数:153
单调递增最长子序列
单调递增最长子序列描述求一个字符串的最长递增子序列的长度 如:dabdbf最长递增子序列就是abdf,长度为4输入第一行一个整数0#include #include #include #include #include #include #include using namespace std;ch...
分类:其他好文   时间:2014-11-02 17:52:24    阅读次数:133
Qt中QString,int,char,QByteArray之间相互转换
http://blog.csdn.net/ymc0329/article/details/7284514int 转 QStringint m=1;QString b;b=QString::number(m)QString 转intQString a="1111"int b;b=a.toInt()ch...
分类:其他好文   时间:2014-11-02 16:17:13    阅读次数:212
【强联通分量缩点】【最长路】【spfa】CH Round #59 - OrzCC杯NOIP模拟赛day1 队爷的讲学计划
10分算法:对于城市网络为一条单向链的数据, 20分算法:对于n 2 #include 3 #include 4 #include 5 using namespace std; 6 #define M 500001 7 #define N 100001 8 struct Node 9 {10 ...
分类:移动开发   时间:2014-11-02 16:14:26    阅读次数:415
括号匹配(链栈实现)
/* 建立链栈实现括号匹配问题 创建栈,判断是否空栈 */ #include #include #include #define status int typedef struct node { char ch; node* next; }SNode; typedef struct { SNode *top; //SNode *base; }Stack; //创建空栈 ...
分类:其他好文   时间:2014-11-02 09:24:08    阅读次数:316
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!