网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

以下选项中不能正确把c1定义成结构体变量的是

A.typedef struct { int red; int green;; int blue; }COLOR; COLOR cl;

B.struct color cl { int red; int green; int blue; };

C.struet color { int red; int green; int blue; }c1;

D.struct { int red; int green; int blue; }cl;


参考答案

更多 “ 以下选项中不能正确把c1定义成结构体变量的是A.typedef struct { int red; int green;; int blue; }COLOR; COLOR cl;B.struct color cl { int red; int green; int blue; };C.struet color { int red; int green; int blue; }c1;D.struct { int red; int green; int blue; }cl; ” 相关考题
考题 以下选项中不能正确把c1定义成结构体变量的是A.typedef struct {int red: int green: int blue; } COLOR; COLOR c1;B.struct color c1 {int red int green: int blue; };C.struct color {int red , int green : int blue : )cl;D.struct {int red; int green; int blue } c1 ;

考题 若有以下语句:typedef struct S{int 9;char h;}T;以下叙述中正确的是( )。A.可用s定义结构体变量B.可用T定义结构体变量C.S是struct类型的变量D.T是struct S类型的变量

考题 阅读以下说明和 Java 代码,填补代码中的空缺,将解答填入答题纸的对应栏内。 【说明】 设计 RGB 方式表示颜色的调色板,进行绘图。其类图如图 6-1 所示。该程序的 Java代码附后。图6-1 类图【Java 代码】 //颜色类 class MyColor { private int red ,green, blue; public MyColor( ) { red = o; green = 0; blue = 0; } public MyColor(int red ,int green ,int blue) { this.red = red; this.green = green; this.blue = blue; } //其他方法略 public String toString( ) { return Red: + red + \tGreen: + green + \tBlue + blue; } } //调色板类 class Palette { public int number; / /颜色数 private (1)palette; //颜色表 public Palette( ) { number = 256; palette = new MyColor[number); } public Palette(MyColor[] palette ,int number) { (2)= number; (3)= palette; } //其他方法略 public String toString( ) { String str = ; for (int i = 0; i number; i++) { str +=i+ : + palette[i] + \n; } return str; } //绘图类 class Drawing { public (4) int COLORNUMBER = 16; public static void main(String[] args) { Palette palette; int red ,green ,blue; MyColor[] color = new MyColor[COLORNUMBER]; for (int i = 0; i COLORNUMBER; i++) { red = (int) (Math.random( ) * 256); green = (int) (Math.random( ) * 256); blue = (int) (Math.random( ) * 256); color [i] = (5) (red ,green ,blue); } palette = new Palette(color ,COLORNUMBER); System.out.println(palette); } }

考题 1、如下选项,哪个不是定义类型名tcolor________。A.enum tcolor{red, green, blue};B.typedef enum color{red,green,blue} tcolor;C.enum color {red,green,blue}; typedef enum color tcolor;D.typedef enum {red,green,blue} tcolor;

考题 以下选项中不能正确把cl定义成结构体变量的是()。A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;B.struct color cl { int red; int green; int blue; };C.struct color { int red; int green; int blue; }cl;D.struct { int red; int green; int blue; }c1;

考题 如下选项,哪个不是定义类型名tcolor________。A.enum tcolor{red, green, blue};B.typedef enum color{red,green,blue} tcolor;C.enum color {red,green,blue}; typedef enum color tcolor;D.typedef enum {red,green,blue} tcolor;

考题 【单选题】以下选项中不能正确把cl定义成结构体变量的是______。A.typedef struct {intred; int green; int blue; } COLOR; COLOR cl;B.struct color cl { int red; int green; int blue; };C.struct color { int red; int green; int blue; }cl;D.struct {int red; int green; intblue; }c1;

考题 9、以下选项中不能正确把c1定义成结构体变量的是______。A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;B.struct color { int red; int green; int blue; } c l;C.struct color cl { int red; int green; int blue; };D.struct { int red; int green; int blue; } c l;

考题 以下选项中不能正确把c1定义成结构体变量的是______。A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;B.struct color cl { int red; int green; int blue; };C.struct color { int red; int green; int blue; } c l;D.struct { int red; int green; int blue; } c l;