请输入您要查询的百科知识:

 

词条 Public
释义

KK: []

DJ: []

a.

1. 公众的[Z]

It is a matter of great public interest.

这是一个公众普遍关心的问题。

2. 公共的,公用的[Z]

You mustn't do that in a public place.

你不可在公共场所做那事。

3. 政府的,公务的[Z]

4. 公然的;众所周知的

They made the secret public.

他们公开了这个秘密。

n.

1. 公众,民众[the S][G]

The public was provoked to anger.

公众被激怒了。

The museum is open to the public.

这个博物馆对大众开放。

2. (某方面的)大众,群众;...界[S][G]

public在程序语言中基本都表示全局变量或者全局函数,他的本意是“公共的”的意思,他表示某个变量或者函数是全局函数,例如:public int a 表示a这个整型变量是全局变量,再例如,声明一个全局函数:public function checked()

........

end function

表示checked这个函数是全局函数

在某些方法中,方法的修饰符为public类型的,修饰符可有可无,例子如下:

public void add(int i , int n)

{

……

}

void add(int i , int n)

{

……

}

C++中public:的意思

在public: 下的成员,是类的公有成员,别的类或者主函数可以申明个对象直接访问,而private: 下的是私有 成员,只有类的内部能访问,类的外部无法访问的.

class A{

public:

int a;

private:

int b;

};

main()

{

A aa;

aa.a=1;

//aa.b=2会出错,说无法访问私有成员

}

常用词组

the public eye

1. (尤指通过媒体)公众关注度,众所熟知

The pressures of being constantly in the public eye.

总在公众眼皮子底下的压力

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/27 13:04:33