摘要:        
字符串右移n位(C++实现):// ShiftNString.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include using namespace std;void Reverse(char* begin, char* end){ char temp; while(begin < end) { temp = *begin; *begin++ = *end; *end = temp; end --; }}void Shift(char* str,int n){ in...    
阅读全文