原创 <<c++ primer>> 指向const對象指針&const指針

參見<<c++ primer>> 110頁 <<數組和指針>> 一節 =-=-=-=-=-=-=-=-=-=-=-=-=-指向const對象指針關鍵理解=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--= c

原创 字符串循環右移n位

void loopMove(char* str,int n)//使字符串循環右移n位 { int i = 0; char *temp = NULL; int strLen = 0; char *head = str;//指向字符