![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
阿济
专业iOS开发
展开
-
字符串倒序重新排列
假如有一列字符串“Henry Qi Hello World",通过函数转换成"World Hello Qi Henry".如何实现呢? 谢了如下代码,请各位朋友指正:#include "iostream.h"#include "string.h"#include void Reverse(char *dest); void main(){ //Get Reverse原创 2008-12-31 22:27:00 · 1963 阅读 · 0 评论 -
冒泡法排序(C++)
void BundleSort(int src[],int num){ int temp; for(int i=0; i { for(int j=0; j { if(src[j] > src[j+1]) { temp = src[j]; src[j] = src[j+1]; src[j+1] = temp; } } } for(int k=0; k {原创 2009-01-06 07:12:00 · 1494 阅读 · 0 评论