自己把一些学习中和使用中的一些点滴有用的记录下来和大家分享。1.获取指定长度的字符串,或者说为字符串数组获取用户输入的字符void get_str(char
str[], int len){ int i=0, c; while (i=250){ while(getchar()!=’\n’) ; .....
分类:
编程语言 时间:
2014-06-09 21:49:51
阅读次数:
325
typedef char status;typedef char Telemtype;#define
NULL 0#define OK 1typedef struct bitnode{ Telemtype data; struct bitnode
*lchild,*rchild;}bitnode.....
分类:
其他好文 时间:
2014-06-09 21:39:56
阅读次数:
209
import java.util.*;public class
GetFirstNoRepeatChar{ static char getChar(String s){ int len=s.length(); in...
分类:
其他好文 时间:
2014-06-09 21:36:34
阅读次数:
226
题目来源:《The C programming language》中的习题P27练习2-1:
编写一个程序以确定分别由signed及unsigned限定的char、short、int与long类型变量的取值范围。采用打印标准头文件中的相应值以及直接计算两种方式实现。后一种方法的实现较困难一些,因为要...
分类:
编程语言 时间:
2014-06-09 21:33:57
阅读次数:
370
挺直接的一个题 哎 想复杂了题意:把n*m矩阵中的字母最小生成树求它的边权值之和 只有字母可以分叉
多了一个提取点的过程思路:prime 算法的简单应用#include#include#includeusing namespace std;char
map[55][55];int node[55][...
分类:
其他好文 时间:
2014-06-09 21:29:26
阅读次数:
276
头文件定义的符号常量CHAR_MIN char的最小值SCHAR_MAX signed char
最大值SCHAR_MIN signed char 最小值UCHAR_MAX unsigned char 最大值SHRT_MAX short
最大值SHRT_M...
分类:
其他好文 时间:
2014-06-09 21:26:12
阅读次数:
230
在做ACM 1002题时,整理得到。#include#include#define MAX
1000void zero(char *s,int len){ int i; for(i=0;i20) ; for(i=0;iblen?alen:blen;
for(j=0;j=0)&&(j>=0);j--....
分类:
编程语言 时间:
2014-06-09 14:10:01
阅读次数:
328
#include #include #include #include #include using
namespace std;ifstream& open_file(ifstream&,const string&);int
main(int argc, char **argv){ map ...
分类:
编程语言 时间:
2014-06-09 00:04:20
阅读次数:
334
1、运用编码技术绕过如URLEncode编码,ASCII编码绕过。例如or
1=1即%6f%72%20%31%3d%31,而Test也可以为CHAR(101)+CHAR(97)+CHAR(115)+CHAR(116)。2、通过空格绕过如两个空格代替一个空格,用Tab代替空格等,或者删除所有空格,如o...
分类:
其他好文 时间:
2014-06-08 23:56:06
阅读次数:
433
# include # include # include # include # include
//使用map解决一对一 的关系using namespace std;map mapdata;//数据存储typedef struct node{ long
num; char ch1[20]; c...
分类:
其他好文 时间:
2014-06-08 20:26:01
阅读次数:
235