In the planning stage of a new town, a function is to be written to work out the
percentage of land for different uses. The new town is represented by an 8x8 grid
expressed as a 2D array of char. In the 2D array, residential areas are repre

展开全部
收起
3回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • Sierra

    16人对此回答表示赞同

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

    void printLandStat(char town[8][8]) {
    /* 代码在这里 */
    int i, j, a[4] = {0};
    char land[4][20] = {
    "Residential", "Commercial", "Utility",
    展开
    16
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 闲云

    14人对此回答表示赞同

    百度的tab间隔太大了,凑合着看
    void printLandStat(char town[8][8]) {
    int Residential = 0;
    int Commercial = 0;
    int Utility = 0;
    int Free = 0;
    int row, col;
    float total = 8 * 8;

    for (row = 0; row < 8; row++)
    展开
    14
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 张三筒

    3人对此回答表示赞同

    C程序:

    #include <stdio.h>

    #include <stdlib.h>

    void printLandStat(char town[8][8]) {

    int i, j;

    int residential,commercial,utility,free;

    int sum;

    residen

    展开
    3
    0回复
    发布于 6年前

    评论(0)

    收起评论

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部