小编Emi*_*OSU的帖子

被告知我的C程序是"硬编码",我不明白为什么

我把我的作业转到了我的在线C编程课程,由于我的程序是"硬编码的,我无法看到它会被视为"硬编码",因为我要求用户输入.以下是我的代码:

#include <stdio.h>
#include <stdlib.h>

#define IMAX 3
#define JMAX 4

int main()
{   
    float a[IMAX][JMAX];
    float avgrow[5];
    float avgcol[5];
    int i,j;
    char c;

    printf ("This program will allow you to enter numbers for 3 rows and 4 columns from         left to right then filling down, and take the averages of the rows and columns and list them next to the row and under the columns. You may use decimals but only 2 will display in the results. Press enter!\n"); …
Run Code Online (Sandbox Code Playgroud)

c programming-languages

5
推荐指数
3
解决办法
1765
查看次数

标签 统计

c ×1

programming-languages ×1