Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 10 years ago.
*(table + row++)[col++] = *key++;
不应该是“row++”,而只是“row”。您已经在其他地方增加了“行”。
Should not be "row++", just "row". You're incrementing "row" elsewhere already.
也许,更具可读性:
void create_table(char *key ,char (*table)[5]) { int len = strlen(key); int row=0, col=0; while (len--) { table[row][col] = *key; printf("%c\n" , table[row][col]); col++; key++; if (col == 4) { col = 0; row++; } } }
Perhaps, a little more readable:
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
不应该是“row++”,而只是“row”。您已经在其他地方增加了“行”。
Should not be "row++", just "row". You're incrementing "row" elsewhere already.
也许,更具可读性:
Perhaps, a little more readable: