ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi ,
data structure is a data structure .... joking..!!
data structure is the - endless - kinds of structures which u use to save get remove and change the data u need in the program u write ... (((( with conditions that it should fill ))))
the simplest is array ( i quess ) but if u don't know what ' array ' is or what ' node ' is , then i will just wast my time if i start explaining ...
some of data structure u will know will studing the language like array and two dimentional array ( matrix ) but others u will not understand till u get the base concepts and from else where ( not from the language it self ) . so if u don't know to program then don't try to understand this now , but the buttom line is that u should know that it is parallel to programing and that u WILL need to know it .
a lot of thanks to everyone
i get started
i have one question for knowledge could i write device driver with any language other than c ?
mohamed i think you got java . could you tell me what can i do with it ?
mohamed i think you got java . could you tell me what can i do with it ?
java is a very recent language , one of it's disadvantages is that it's owened by sun ...
at first it was developed to microwaves and things like this but after that it inserts very strongly to the internet as i already said ...
there is onething unique about java and internet which is applets and flashes ... ( applet is a relativly small program , which u can run without any need to download it to u'r machine , that because when u click it's icon u'r computer get the compilation ONLY and u'r internet browser have 'jvm' that runs it ..
as jlliagre said
Quote:
You can do in java almost whatever you want, except precisely device drivers ...
((i quess ))
iam just interested to know what u choosed to start with ???
and accroding to :
Quote:
can i learn only the part how to write a device driver by c and not the whole of c ?
i my self don't think !!!!!!!!!!!? , from question like this i can see obviously that u have no idea what programming is !?
any way , hope that this helped , and have fun while programming and good luck !
I've never written a device driver for linux, but I've already created a Windows vxd using object pascal.
If you are specifically talking about linux, then it is doubtful you will get anything other then C to work with the kernel. The kernel is pretty picky about device modules... many people have tried (and failed) to write then in C++ and other languages.
one of it's disadvantages is that it's owened by sun ...
Is that really a disadvantage ?
Java runtime and developer toolkit have been free (like free beer) since the beginning
The specs are public, everyone is free to implement its own implementation, and there are many of them (gcj, kaffe, gnu classpath, iKVM, harmony project).
Sun JVM source code is freely available http://java.sun.com/j2se/jrl_download.html
There is a couple of licensing agreements that allow you to modify Sun's code (http://java.sun.com/j2se/1.5.0/jrl_5.0-license.txt http://java.net/jrl.html http://java.sun.com/j2se/1.5.0/scsl_5.0-license.txt
) and more to come (JIUL)
The Java API evolution is not proprietary but a community process, open to everyone. http://jcp.org/en/introduction/faq
Next Java version is developed in an open way, everyone can see the code and contribute to it: https://mustang.dev.java.net/
Sun has provided to the open source community more lines of code than any other commercial company OpenOffice, NetBeans, OpenSolaris. http://www.sunsource.net/why.html
As an organization, only UC Berkeley has given more.
Sun is contributing to many open source projects (Apache Tomcat, Mozilla, Gnome, Grid, JXTA, ODSL, ant, cromson, xalan; ...)
Well, I would say Sun owning Java is one of its advantage, not disadvantage.
learn java first, its an easier language to get your head around, when your comfortable with classes and the basics of structured programming, then its a hop skip and a jump to c++..
but to start with c++ is like swimming with sharks, memory allocation and garbage collection is all manual, file points and memory pointers need to be assigned.. its a tougher lowerlevel language..
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
well , happy birthday java !?
Certainly, don't you like parties ?
Quote:
java is recent if compared to other famouse powerful languages like c++ ... .
You previously wrote it was very recent, which doesn't apply for a 10 years old programming language in my opinion, but anyway, a language value is not in its age.
Are the languages fortran (51 years old), cobol (46), basic (41), Smalltalk (36), C (33), C++ (23), Perl (18), Python (15), Java (10), C# (5) ordered here by quality ?
Certainly not, and anyway such measure is worthless.
Quote:
oh , we are so lucky that java is owened to sun and not to other company like ...... , that is right
Thanks, you got my point !
Quote:
, but it still OWENED ,
thats it ,
Well, what's wrong with owning what one deserves to after creating it ?
Java is a trademark owned by Sun Microsystems,
Linux is a trademark owned by Linus Torvalds.
Products behind these trademarks are available for free, what do you want ?
More than that ?
ofcorse i do .. , what party it could be lights off , gatto with ten candles wretten on it ((( java 10 , tell 110 ))) , fassinating ..!
Quote:
fortran (51 years old), cobol (46), basic (41), Smalltalk (36), C (33), C++ (23), Perl (18), Python (15), Java (10), C# (5) ordered here by quality ?
thanks for showing that java almost the most recent one !? :-)
and i never said that it is recent so it's good !!
and now ---->> i have problem setting my class path , my shell throws 'no such command' if i uses >> setenv << , or CLASSPATH
and if i add it to ~/.bash_profile it does NOT work , so SOS , SOS , SOS , SOS .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.