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.
I was thinking of a thread for discussing small program examples
for helping out newbie programmers like me.
Noobs submit their program examples here and if experts have the time,
they can go through those and tell the shortcomings or potentially harmful side effects of the code while suggesting improvements.
The programs will b simple and well-commented hopefully.
I don't know that I'm an expert, but my thought is that there is already such a form. It's this programming forum right here. Play around with C, and if you have a question, come back and ask it.
I've found that having a blog and posting code examples to it to be very helpful - I've had a lot of useful comments left about the C code I write as I learn..
Thats OK. Thnx for the support.
Could u suggest some small open source program which I can take a peek into to see what real world C-programming is like? Beginner stuff, plz.
i think without knowing file input/output, a program isnt very useful.
so (unless you do already), learn the basics of C.. basic console input/output, and datatypes. once you know that, then start learning basic file input/output.. an example program would be the 'cat' command, which just opens a file and displays every character until it reaches the EOF/-1 character, printing each one at a time.
Real world C is just a language (programming tool). You might want to understand Data Structures and Algorithms very well. Programming is more of a logic development and problem solving techniques.
On the other hand I can't suggest any other open source software then linux. Pick one perticular area and study it deeply. i.e. memory management, file system handling, network processing..anyone of them. It would be a great experience.
I hope this will help.
And yes anytime you are stuck or you need suggestions This forum is always there.
-Mihir.
wats the equivalent of DOS.h & GRAPHICS.h in linux?
I have previously used the headers GRAPH.h and DOS.h
in my C programs on MS-DOS.
There should be an equivalent of DOS.h in linux but could not find in /usr.
Is it called something else in linux?
Well, Thnx.
I wanted to use the date and time functions. Got it now.
ctime it is.
My friend had made a nice calendar program using GRAPHICS.h
to draw rectangles and stuff in MS-DOS. Thats y I was asking.
As for "linux NOT based on DOS",
isnt DOS just Disk Operating System?
wouldnt it be proper to call Unix or linux as DOSs?
I dont know bout that, plz tell.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.