源码均在XP系统,VS2008下编译并运行
附上源码
#include "stdafx.h"
#include <string.h>
/************************************************************************/
/* 循环左移字符串N位 */
/************************************************************************/
void lefShift(char *source,int length);
int _tmain(int argc, _TCHAR* argv[]) {
char source[20] = "tangtangtang";
printf("原始字符串&