移动互联网
腊八节
我是一个迷途的孩子,正在回家的路上
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
大数相乘问题
#include "stdafx.h"#include#includeusing namespace std;void add(string &sum,string temp){int len1=sum.size();int len2=temp.size();int jw=0;int i,j;for(i=len1-1,j=len2-1;i>=0 && j>=0;i--,j--){int a=s转载 2014-09-19 23:34:37 · 639 阅读 · 0 评论 -
字符串翻转和字符串压缩
题目:将字符串原地压缩,比如"eeeeeaaaff"压缩为 "e5a3f2"。#include "stdafx.h"#include using namespace std;//字符串原地压缩void CompressString(char *str){ if (NULL == str) { return; } in原创 2014-12-27 11:35:41 · 658 阅读 · 0 评论
分享