stringsを文字入力から連結したいとします。 私はユーザに、EOFまでcharと入力してから、stringを送信したいと思っています。私はexapmle「R」のためcharがenterをヒットし、これは私が私の画面に表示されるものである(私はUbuntuの上で働いています)Control + Dを押して入力するのであれば、現在 : : r
r
�
は、これは私のプログラムでありますここ
を破損した void partition(char words[][MAXWORDLEN + 1], int start, int end, int& partitionIndex) {
char pivot[MAXWORDLEN + 1]; //choose last element to be the pivot
strcpy(pivot, words[end]);
partitionI