2013年9月17日星期二

Basic questions , c language structure , expressed in java how

For example, in the structure of c language
struct XXXX
{int a;
int b;
};
in java How the Internet can not find out
will point c language , not java, recently created a c language files , you need the java open, under the guidance of my friends , thank you
------ Solution ---- ----------------------------------------
c language structures and java the class is almost, but two is still a little difference
------ Solution ---------------------------- ----------------
java is a pure object-oriented language, no structure
you define a class , there is no way the variable , it is not the same as with the structure
------ Solution ------------------ --------------------------
read files stored in an array , then you read the inside, then the array operation
- ---- For reference only ---------------------------------------
< br /> will reading a file when it is not to all members of this class variables are read once , c language is read- once, read many bytes on the line , or is there an easier way
- ---- For reference only ---------------------------------------
Thank you I try

没有评论:

发表评论