原创 c / c++ 筆記

1.char*指針訪問元素的問題 對於char *型變量,遍歷訪問該變量的每一個元素時,會發生錯誤。 例如: char * str="01010101"; for(int i=0;i<strlen(str);i++) cout<