【題目簡述】:字符串的簡單處理,看懂題意,特別是他給的那個例子就好,很簡單
見代碼:
#include#include #include #include using namespace std; char str[211][211]; int main() { int colum; char str1[211]; int tmp; while(cin>>colum,colum) { cin>>str1; int len = strlen(str1); tmp = len/colum; int count = 0; for(int i = 0;i =0;j--) str[i][j] = str1[count++]; } for(int i = 0;i