- 博客(8)
- 收藏
- 关注
原创 【Cpp】分班座位问题,求所有座位方式
#include #include #include using namespace std;#define weight 10#define height 3#define boyandgirl 30long double ncount = 0,boysfourgirls=0;inline void displseat(int seat[height][weight]){
2015-10-11 10:26:21
261
原创 【C++】递归求数组最短路径
没用过动态数组库。。干脆自己写个渣渣的动态数组类 实在想不到名字#include using namespace std;class 动态数组{private: int *m_pInt; int m_iNum;public: void Add(int m_Value) { /* 如果已经有了就新开辟空间保存 没有的直接开辟 */ if (NULL ==
2015-10-07 10:32:39
698
原创 【C++】简单对称加密
#include #include #include #include using namespace std;/* 简单的对称加密类 */class symEncryption{private: CHAR *m_pData; CHAR *m_Key; CHAR *m_reSult;public: /* 设置加密的数据 */ BOOL setEncryData( CH
2015-10-06 21:25:23
1996
原创 [Cpp]去掉字符串空白2
char sz[] = " 1 1 2"; char *space; //指向 空白字符 char *pstrc = sz;//sz 是 char sz[] = " 1 1 2"; while (*pstrc) { if (' ' == *pstrc) { //如果发现空白 space = pstrc; //指向空白处 whil
2015-10-03 17:26:18
318
转载 【强大枚举函数】Enum系列
原博客地址:http://blog.sina.com.cn/s/blog_5074c2110100id55.html
2015-10-03 11:19:21
1082
原创 【Cpp】删除字符串空格
#include #include #include using namespace std;int main(void) { char sz[] = "1 2 z1 " ; char *p = sz; int len = strlen(p); cout << p << endl; /*Clear Space*/ while (
2015-10-03 11:08:47
753
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人