收二川:the difference between structure and class in C++

来源:百度文库 编辑:高考问答 时间:2024/05/01 21:45:26
there are different type of data in structure such as int long double and so on
we can also use private or public protected
in it;but we can use all of them in one class!!what is the difference between them??can you help me ??I'm serious !!
--little boy who want to be strong !!

Class in C++ is implemented by means of struct.
In fact, class is a special structure which includes member functions. Also, class provides a stricter access to member variables, as you said, private, public or protected.

上面的是不是疯了?
structure是结构体 ,包含很多属性
就像一个气球结构体 它有重量、直径等属性
类的成员可以有很多,包括成员函数、变量,方法等

1.Therefore a kind of chain reaction excites the rising cloud,producing more and more heat in relation to the surrounding air,as the cloud grows larger.因此一种连锁反应导致云增加,当云越来越大的时候,与周围的空气相联系地产生越来越多的热。

2.These downdrafts steadily increases in size and strength,crowding the updrafts and growing more violent as they descend to the ground with their thundering downpour. They then move out along the earth beyond the rain with winds that often reach the speed of 60 or 70 miles an hour.
那些下沉气流在大小和力量方面稳定增长,与上升气流集聚之后当他们会更加猛烈地增长,既而伴随着雷震雨下降到地面。然后他们会伴着风以达60至70英里每小时的速度在雨层之上沿着地球移动
3.This explains,in a general way, the cloud develotment and the wind and rain of a thunderstorm.
大体上说,这解释了云的积聚,风,还有雷暴雨。

I don't know what do you said?
Perhaps the question you asked not relation with the computer