To help with this ________, the yogurt shop TCBY has been creative to sell yogurt as well as low-fat ice cream.A.practiceB.personC.reasonD.problem

题目
To help with this ________, the yogurt shop TCBY has been creative to sell yogurt as well as low-fat ice cream.

A.practice

B.person

C.reason

D.problem


相似考题
更多“To help with this ________, the yogurt shop TCBY has been creative to sell yogurt as well as low-fat ice cream. ”相关问题
  • 第1题:

    She ___here a minute ago.

    A.is

    B. was

    C.be

    D. been


    正确答案:B

  • 第2题:

    He is talking so much about America as if he ____ there.

    A、had been

    B、has been

    C、was

    D、been


    正确答案:A

  • 第3题:

    已知在文件IN. dat中存有100个产品销售记录,每个产品销售记录由产品代码code(字符型4位)、产品名称name(字符型10位)、单价uprice(整型)、数量amount(整型)、金额sum(长整型)5部分组成。其中:金额=单价×数量。函数Rdata()是读取这100个销售记录并存入结构数组sell中。请编写函数SortDat(),其功能要求:按金额从小到大进行排列,若金额相等,则按产品代码从小到大进行排列,最终排列结果仍存入结构数组sell中。最后调用函数Wdata(),把结果输出到OUT. dat文件中。

    注意:部分源程序已经给出。请勿改动主函数main()、读数据函数Rdata()和输出数据函数Wdata()的内容。

    include <stdio. h>

    include <string. h>

    include <conio. h>

    include <stdlib. h>

    define MAX 100

    typedef struct

    { char code[5]; /* 产品代码 */

    char name[11]; /* 产品名称 */

    int uprice; /* 单价 */

    int amount; /* 数量 */

    long sum; /* 金额 */

    } PRO;

    PRO sell [MAX];

    void Rdata();

    void Wdata();

    void SortDat()

    {

    }

    void main ()

    { memset(sell, 0, sizeof(sell)

    Rdata();

    SortDat();

    Wdata();

    }

    void Rdata()

    { FILE *fp;

    char str[80], ch[11];

    int i;

    fp = fopen("IN. dat", "r");

    for (i=0; i<100; i++)

    { fgets(str, 80, fp);

    memcpy(sell[i].code, str, 4);

    memcpy(sell[i].name, str+4, 10);

    memcpy(ch, str+14, 4);

    ch[4] = 0;

    sell[i].uprice = atoi(ch);

    memcpy(ch, str+18, 5);

    ch[5] = 0;

    sell[i]. amount = atoi(ch);

    sell[i].sum = (long)sell[i]. uprice * sell[i]. amount;

    }

    fclose(fp);

    }

    void Wdata()

    { FILE *fp;

    int i;

    fp = fopen("OUT. dat", "w");

    for (i=0; i<100; i++)

    { printf("%s %s %4d %5d %5d\n", sell[i]. code, sell[i].name,

    sell[i].uprice, sell[i]. amount, sell[i]. sum);

    fprintf(fp, "%s %s %4d %5d %5d\n", sell[i]. code,

    sell[i]. name, sell[i]. uprice, sell[i]. amount, sell[i]. sum);

    }

    fclose(fp);

    }


    正确答案:void SortDat() { int i j; PRO xy; for (i=0; i99; i++) for (j=i+1; j100; j++) if (sell[i] .sum > sell[j] .sum) { xy = sell[i]; sell[i] = sell[j]; sell[j] = xy; } else if (sell[i].sum == sell[j].sum) { if (strcmp (sell [i] . code sell[j]. code) >0) { xy = sell[i]; sell[i] = sell[j]; sell[j] = xy; } } } [解题思路] 这里我们通过一个双重循环来实现首先按产品的金额进行比较如果前一个产品的金额大于后一个产品的金额则这两个产品进行数据交换;如果两个产品的金额相等用字符串比较函数strcmp()比较两个产品的产品代码如果前一个产品的代码大于后一个产品的代码则这两个产品进行数据交换。
    void SortDat() { int i, j; PRO xy; for (i=0; i99; i++) for (j=i+1; j100; j++) if (sell[i] .sum > sell[j] .sum) { xy = sell[i]; sell[i] = sell[j]; sell[j] = xy; } else if (sell[i].sum == sell[j].sum) { if (strcmp (sell [i] . code, sell[j]. code) >0) { xy = sell[i]; sell[i] = sell[j]; sell[j] = xy; } } } [解题思路] 这里我们通过一个双重循环来实现,首先按产品的金额进行比较,如果前一个产品的金额大于后一个产品的金额,则这两个产品进行数据交换;如果两个产品的金额相等,用字符串比较函数strcmp()比较两个产品的产品代码,如果前一个产品的代码大于后一个产品的代码,则这两个产品进行数据交换。

  • 第4题:

    Whichfouraretrue?()

    A.Has-arelationshipsshouldneverbeencapsulated.

    B.Has-arelationshipsshouldbeimplementedusinginheritance.

    C.Has-arelationshipscanbeimplementedusinginstancevariables.

    D.Is-arelationshipscanbeimplementedusingtheextendskeyword.

    E.Is-arelationshipscanbeimplementedusingtheimplementskeyword.

    F.Anarrayoracollectioncanbeusedtoimplementaone-to-manyhas-arelationship.

    G.TherelationshipbetweenMovieandActressisanexampleofanis-arelationship.


    参考答案:C, D, E, F

  • 第5题:

    yogurt它的中文意思是:( )

    A.酸奶

    B.矿泉水

    C.果汁

    D.碳酸饮料


    正确答案:A

  • 第6题:

    5.We can______ books _______bookstore(书店).

    A. sell ;to

    B. buy ;from

    C. sell ;from

    D. buy ;to


    正确答案:B
    5.B【解析】根据句意“我们能从书店买书”,故选B.